Added a missing #include directive
This commit is contained in:
parent
7eacd1b15d
commit
90710cfcc5
|
@ -25,7 +25,7 @@
|
||||||
#include <confirm.h> // DisplayError
|
#include <confirm.h> // DisplayError
|
||||||
|
|
||||||
#include <GL/glew.h>
|
#include <GL/glew.h>
|
||||||
#include <cassert>
|
#include <stdexcept>
|
||||||
|
|
||||||
int checkGlError( const std::string& aInfo, bool aThrow )
|
int checkGlError( const std::string& aInfo, bool aThrow )
|
||||||
{
|
{
|
||||||
|
@ -74,7 +74,7 @@ int checkGlError( const std::string& aInfo, bool aThrow )
|
||||||
if( result != GL_NO_ERROR )
|
if( result != GL_NO_ERROR )
|
||||||
{
|
{
|
||||||
if( aThrow )
|
if( aThrow )
|
||||||
throw std::runtime_error( errorMsg );
|
throw std::runtime_error( errorMsg.mb_str() );
|
||||||
else
|
else
|
||||||
DisplayError( nullptr, errorMsg );
|
DisplayError( nullptr, errorMsg );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue