When we get D3DERR_DEVICENOTRESET, we should go back to the mode
we were in when we lost the device, not do a complete mode search from scratch. This fixes a dependency on the behavior of storing the last successful mode change back into PREFSMAN. (This is D3D's equivalent to the WM_ACTIVATE -> ChangeDisplaySettings code in GraphicsWindow.)
This commit is contained in:
@@ -641,12 +641,11 @@ bool RageDisplay_D3D::BeginFrame()
|
|||||||
case D3DERR_DEVICENOTRESET:
|
case D3DERR_DEVICENOTRESET:
|
||||||
{
|
{
|
||||||
bool bIgnore = false;
|
bool bIgnore = false;
|
||||||
VideoModeParams params;
|
CString sError = SetD3DParams( bIgnore );
|
||||||
StepMania::GetPreferredVideoModeParams( params );
|
|
||||||
|
|
||||||
CString sError = SetVideoMode( params, bIgnore );
|
|
||||||
if( sError != "" )
|
if( sError != "" )
|
||||||
RageException::Throw( sError );
|
RageException::Throw( sError );
|
||||||
|
|
||||||
|
this->SetDefaultRenderStates();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user