Added a missing #include directive

This commit is contained in:
Maciej Suminski 2017-01-13 17:15:32 +01:00
parent 7eacd1b15d
commit 90710cfcc5
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@
#include <confirm.h> // DisplayError
#include <GL/glew.h>
#include <cassert>
#include <stdexcept>
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( aThrow )
throw std::runtime_error( errorMsg );
throw std::runtime_error( errorMsg.mb_str() );
else
DisplayError( nullptr, errorMsg );
}