Mercurial > sdl-ios-xcode
diff src/video/win32/SDL_win32window.c @ 3057:089a77aebb7d
Added test program for SDL_CreateWindowFrom()
Make sure OpenGL library is loaded before working with OpenGL windows,
even those created with SDL_CreateWindowFrom()
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 09 Feb 2009 05:32:12 +0000 |
parents | 9acb9f0f7f0d |
children | 0d12e8f1de3c |
line wrap: on
line diff
--- a/src/video/win32/SDL_win32window.c Sun Feb 08 15:35:06 2009 +0000 +++ b/src/video/win32/SDL_win32window.c Mon Feb 09 05:32:12 2009 +0000 @@ -521,11 +521,6 @@ SDL_WindowData *data = (SDL_WindowData *) window->driverdata; if (data) { -#ifdef SDL_VIDEO_OPENGL_WGL - if (window->flags & SDL_WINDOW_OPENGL) { - WIN_GL_CleanupWindow(_this, window); - } -#endif ReleaseDC(data->hwnd, data->hdc); if (data->created) { if (videodata->wintabDLL) {