Skip to content
Permalink
Browse files
SDL_GL_GetAttribute: If a GL context isn't active, only return failur…
…e when the specified attribute needs an active GL context to be queried.
  • Loading branch information
slime73 committed Dec 11, 2015
1 parent f2f435e commit 0c463d770bb8da2d891217d2e3d49d4d69c99910

File 1 of 4 in 0c463d7

@@ -393,7 +393,7 @@ GL_CreateRenderer(SDL_Window * window, Uint32 flags)
const char *hint;
GLint value;
Uint32 window_flags;
int profile_mask, major, minor;
int profile_mask = 0, major = 0, minor = 0;
SDL_bool changed_window = SDL_FALSE;

SDL_GL_GetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, &profile_mask);

0 comments on commit 0c463d7

Please sign in to comment.