fix VC6 compile error

This commit is contained in:
Chris Danford
2003-06-27 08:33:15 +00:00
parent df728d987a
commit b9acabbed5
+5 -3
View File
@@ -195,8 +195,9 @@ const PixelFormatDesc *RageDisplay_D3D::GetPixelFormatDesc(PixelFormat pf) const
RageDisplay_D3D::RageDisplay_D3D( VideoModeParams p )
try
{
try
{
LOG->Trace( "RageDisplay_D3D::RageDisplay_D3D()" );
LOG->MapLog("renderer", "Current renderer: Direct3D");
@@ -268,7 +269,7 @@ try
RageException::Throw("SDL_SetVideoMode failed: %s", SDL_GetError());
SetVideoMode( p );
} catch(...) {
} catch(...) {
// Clean up; ~RageDisplay will not be called.
if( SDL_WasInit(SDL_INIT_VIDEO) )
SDL_QuitSubSystem(SDL_INIT_VIDEO);
@@ -285,7 +286,8 @@ try
g_D3D8_Module = NULL;
}
throw;
};
}
}
void RageDisplay_D3D::Update(float fDeltaTime)
{