# HG changeset patch # User Sam Lantinga # Date 1297527457 28800 # Node ID 93ea62a5ba8f911dc18314d08fdc694687bf7e5a # Parent e107518710f6394383283382043d4e49b198c8ef Only expose the OpenGL flag to SDL 1.2 if it was requested. The window flags mean the window is OpenGL capable. The surface flag means that the surface is a stub surface representing a window that has an OpenGL context attached. diff -r e107518710f6 -r 93ea62a5ba8f src/SDL_compat.c --- 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) {