Navigation Menu

Skip to content

Commit

Permalink
Temporary hack to fix bug 3725 - Call made to glGetString before cont…
Browse files Browse the repository at this point in the history
…ext creation

This breaks bugs 2570, 3145
  • Loading branch information
slouken committed Aug 4, 2017
1 parent 56cab6d commit cc5ceb1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/video/SDL_video.c
Expand Up @@ -2916,6 +2916,8 @@ SDL_GL_ExtensionSupported(const char *extension)
void
SDL_GL_DeduceMaxSupportedESProfile(int* major, int* minor)
{
/* This function breaks games because OpenGL functions are being called before a context is current - see bug 3725 */
#if 0
#if SDL_VIDEO_OPENGL || SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2
/* XXX This is fragile; it will break in the event of release of
* new versions of OpenGL ES.
Expand All @@ -2934,6 +2936,10 @@ SDL_GL_DeduceMaxSupportedESProfile(int* major, int* minor)
*minor = 0;
}
#endif
#else
*major = 2;
*minor = 0;
#endif /* 0 */
}

void
Expand Down

0 comments on commit cc5ceb1

Please sign in to comment.