fix viewport not correctly reset when alt+tabbing out of and back into full-screen opengl

This commit is contained in:
Chris Danford
2005-11-24 10:40:23 +00:00
parent 92c3de82d6
commit b3c7b9c99d
4 changed files with 41 additions and 7 deletions
@@ -74,7 +74,9 @@ void DumpPixelFormat( const PIXELFORMATDESCRIPTOR &pfd )
else { str += "software "; bInvalidFormat = true; }
}
else
{
str += "ICD ";
}
if( pfd.iPixelType != PFD_TYPE_RGBA ) { str += "indexed "; bInvalidFormat = true; }
if( !(pfd.dwFlags & PFD_SUPPORT_OPENGL) ) { str += "!OPENGL "; bInvalidFormat = true; }
@@ -98,6 +100,8 @@ void DumpPixelFormat( const PIXELFORMATDESCRIPTOR &pfd )
* LowLevelWindow_Win32::~LowLevelWindow_Win32 will call Shutdown(). */
CString LowLevelWindow_Win32::TryVideoMode( VideoModeParams p, bool &bNewDeviceOut )
{
//LOG->Warn( "LowLevelWindow_Win32::TryVideoMode" );
ASSERT_M( p.bpp == 16 || p.bpp == 32, ssprintf("%i", p.bpp) );
bNewDeviceOut = false;