exceptions

This commit is contained in:
Glenn Maynard
2004-11-30 22:21:50 +00:00
parent 227e8ee78b
commit 22812c0e7f
4 changed files with 37 additions and 46 deletions
+6 -7
View File
@@ -705,13 +705,12 @@ RageDisplay *CreateDisplay()
if( sRenderer.CompareNoCase("opengl")==0 )
{
#if defined(SUPPORT_OPENGL)
error += "Initializing OpenGL...\n";
try {
return new RageDisplay_OGL( params, PREFSMAN->m_bAllowUnacceleratedRenderer );
} catch(RageException e) {
error += CString(e.what()) + "\n";
continue;
};
RageDisplay_OGL *pRet = new RageDisplay_OGL;
CString sError = pRet->Init( params, PREFSMAN->m_bAllowUnacceleratedRenderer );
if( sError == "" )
return pRet;
error += "Initializing OpenGL...\n" + sError;
delete pRet;
#endif
}
else if( sRenderer.CompareNoCase("d3d")==0 )