Improve error messages when OpenGL video init fails

This commit is contained in:
Glenn Maynard
2003-08-28 00:08:01 +00:00
parent 98c7c09cc7
commit 3728708145
5 changed files with 11 additions and 10 deletions
+1 -2
View File
@@ -95,8 +95,7 @@ bool RageDisplay::SetVideoMode( VideoModeParams p )
if( this->TryVideoMode(p,bNeedReloadTextures) == "" )
return bNeedReloadTextures;
RageException::ThrowNonfatal( "SetVideoMode failed: %s. Tried to fall back to other modes, but nothing worked.",
err.c_str() );
RageException::ThrowNonfatal( "SetVideoMode failed: %s", err.c_str() );
}
void RageDisplay::ProcessStatsOnFlip()