Yet another trial to use wxString as a std::runtime_error message
This commit is contained in:
parent
90710cfcc5
commit
bf735b6fe7
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue