src/render/opengl/SDL_render_gl.c
changeset 9958 687e118144c7
parent 9680 1d13a878b066
child 9977 f9cd179cf50e
equal deleted inserted replaced
9957:0be86b512d34 9958:687e118144c7
   391     SDL_Renderer *renderer;
   391     SDL_Renderer *renderer;
   392     GL_RenderData *data;
   392     GL_RenderData *data;
   393     const char *hint;
   393     const char *hint;
   394     GLint value;
   394     GLint value;
   395     Uint32 window_flags;
   395     Uint32 window_flags;
   396     int profile_mask, major, minor;
   396     int profile_mask = 0, major = 0, minor = 0;
   397     SDL_bool changed_window = SDL_FALSE;
   397     SDL_bool changed_window = SDL_FALSE;
   398 
   398 
   399     SDL_GL_GetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, &profile_mask);
   399     SDL_GL_GetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, &profile_mask);
   400     SDL_GL_GetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, &major);
   400     SDL_GL_GetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, &major);
   401     SDL_GL_GetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, &minor);
   401     SDL_GL_GetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, &minor);