Commit e74e437b authored by Sam Lantinga's avatar Sam Lantinga

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.
parent 8443161f
...@@ -519,7 +519,7 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags) ...@@ -519,7 +519,7 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags)
if (window_flags & SDL_WINDOW_FULLSCREEN) { if (window_flags & SDL_WINDOW_FULLSCREEN) {
surface_flags |= SDL_FULLSCREEN; surface_flags |= SDL_FULLSCREEN;
} }
if (window_flags & SDL_WINDOW_OPENGL) { if ((window_flags & SDL_WINDOW_OPENGL) && (flags & SDL_OPENGL)) {
surface_flags |= SDL_OPENGL; surface_flags |= SDL_OPENGL;
} }
if (window_flags & SDL_WINDOW_RESIZABLE) { if (window_flags & SDL_WINDOW_RESIZABLE) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment