# HG changeset patch # User Sam Lantinga # Date 1142322033 0 # Node ID ce84e28c2c07aa1cc4cc4086702b3dbca75edb77 # Parent 89f90f32f6c0ed99539213cf2a50cdf300370357 Fixed bug #67 Re-enable OpenGL window resetting code for the windib driver diff -r 89f90f32f6c0 -r ce84e28c2c07 src/video/wincommon/SDL_wingl.c --- a/src/video/wincommon/SDL_wingl.c Tue Mar 14 07:06:06 2006 +0000 +++ b/src/video/wincommon/SDL_wingl.c Tue Mar 14 07:40:33 2006 +0000 @@ -38,10 +38,10 @@ { int status = 0; -#if 0 /* This doesn't work with DirectX code (see CVS comments) */ #ifndef _WIN32_WCE /* FIXME WinCE needs the UNICODE version of CreateWindow() */ + /* This doesn't work with DirectX code (see CVS comments) */ /* If we were passed a window, then we can't create a new one */ - if ( !SDL_windowid ) { + if ( !SDL_windowid && SDL_strcmp(this->name, "windib") == 0 ) { /* Save the existing window attributes */ LONG style; RECT rect = { 0, 0, 0, 0 }; @@ -66,7 +66,6 @@ } } else #endif /* !_WIN32_WCE */ -#endif { SDL_SetError("Unable to reset window for OpenGL context"); status = -1;