make SetVideoMode not throw

This commit is contained in:
Glenn Maynard
2004-11-30 20:01:07 +00:00
parent 388fb41404
commit 6f46898f69
6 changed files with 30 additions and 19 deletions
+5 -5
View File
@@ -368,12 +368,12 @@ RageDisplay_OGL::RageDisplay_OGL( VideoModeParams p, bool bAllowUnacceleratedRen
wind = MakeLowLevelWindow();
try {
SetVideoMode( p );
} catch(...) {
/* SetVideoMode can throw. */
bool bIgnore = false;
CString sError = SetVideoMode( p, bIgnore );
if( sError != "" )
{
delete wind;
throw;
RageException::ThrowNonfatal( sError );
}
// Log driver details