Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Only expose the OpenGL flag to SDL 1.2 if it was requested.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slouken committed Feb 12, 2011
1 parent 172849d commit f7ee7b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SDL_compat.c
Expand Up @@ -519,7 +519,7 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags)
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) {
Expand Down

0 comments on commit f7ee7b8

Please sign in to comment.