Yet another trial to use wxString as a std::runtime_error message

This commit is contained in:
Maciej Suminski 2017-01-13 22:48:26 +01:00
parent 90710cfcc5
commit bf735b6fe7
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ int checkGlError( const std::string& aInfo, bool aThrow )
if( result != GL_NO_ERROR )
{
if( aThrow )
throw std::runtime_error( errorMsg.mb_str() );
throw std::runtime_error( (const char*) errorMsg.char_str() );
else
DisplayError( nullptr, errorMsg );
}