src/video/win32/SDL_win32window.c
changeset 1952 420716272158
parent 1951 7177581dc9fa
child 1956 ba0d62354872
--- a/src/video/win32/SDL_win32window.c	Thu Jul 27 06:53:23 2006 +0000
+++ b/src/video/win32/SDL_win32window.c	Fri Jul 28 08:43:17 2006 +0000
@@ -213,7 +213,7 @@
         DestroyWindow(hwnd);
         return -1;
     }
-#ifdef SDL_VIDEO_OPENGL
+#ifdef SDL_VIDEO_OPENGL_WGL
     if (window->flags & SDL_WINDOW_OPENGL) {
         if (WIN_GL_SetupWindow(_this, window) < 0) {
             WIN_DestroyWindow(_this, window);
@@ -419,7 +419,7 @@
     SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
 
     if (data) {
-#ifdef SDL_VIDEO_OPENGL
+#ifdef SDL_VIDEO_OPENGL_WGL
         if (window->flags & SDL_WINDOW_OPENGL) {
             WIN_GL_CleanupWindow(_this, window);
         }