src/SDL_compat.c
changeset 5267 93ea62a5ba8f
parent 5262 b530ef003506
child 5286 73d27f06a715
--- a/src/SDL_compat.c	Sat Feb 12 07:57:35 2011 -0800
+++ b/src/SDL_compat.c	Sat Feb 12 08:17:37 2011 -0800
@@ -519,7 +519,7 @@
     if (window_flags & SDL_WINDOW_FULLSCREEN) {
         surface_flags |= SDL_FULLSCREEN;
     }
-    if (window_flags & SDL_WINDOW_OPENGL) {
+    if ((window_flags & SDL_WINDOW_OPENGL) && (flags & SDL_OPENGL)) {
         surface_flags |= SDL_OPENGL;
     }
     if (window_flags & SDL_WINDOW_RESIZABLE) {