From 3df6ece2569173ee679d2520316e42e78518ec84 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 14 Mar 2006 07:40:33 +0000 Subject: [PATCH] Fixed bug #67 Re-enable OpenGL window resetting code for the windib driver --- src/video/wincommon/SDL_wingl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/video/wincommon/SDL_wingl.c b/src/video/wincommon/SDL_wingl.c index ca2ecc324..0ff2d6d9a 100644 --- a/src/video/wincommon/SDL_wingl.c +++ b/src/video/wincommon/SDL_wingl.c @@ -38,10 +38,10 @@ static int WIN_GL_ResetWindow(_THIS) { 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 @@ static int WIN_GL_ResetWindow(_THIS) } } else #endif /* !_WIN32_WCE */ -#endif { SDL_SetError("Unable to reset window for OpenGL context"); status = -1;