Skip to content

Commit

Permalink
Fixed bug #67
Browse files Browse the repository at this point in the history
Re-enable OpenGL window resetting code for the windib driver
  • Loading branch information
slouken committed Mar 14, 2006
1 parent 1894b38 commit 3df6ece
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/video/wincommon/SDL_wingl.c
Expand Up @@ -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 };
Expand All @@ -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;
Expand Down

0 comments on commit 3df6ece

Please sign in to comment.