From b8d79261eda49671e6ae63592412a80ac49cc893 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 22 Dec 2015 06:51:14 +0100 Subject: OPENGLSDL: Request "standard" GL contexts. Compatibility profiles only exist in modern OpenGL and we request an ancient version. --- backends/graphics/openglsdl/openglsdl-graphics.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'backends/graphics') diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp index 2171b9554c..7ea1860d93 100644 --- a/backends/graphics/openglsdl/openglsdl-graphics.cpp +++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp @@ -62,7 +62,7 @@ OpenGLSdlGraphicsManager::OpenGLSdlGraphicsManager(uint desktopWidth, uint deskt #if USE_FORCED_GL glContextType = OpenGL::kContextGL; - _glContextProfileMask = SDL_GL_CONTEXT_PROFILE_COMPATIBILITY; + _glContextProfileMask = 0; _glContextMajor = DEFAULT_GL_MAJOR; _glContextMinor = DEFAULT_GL_MINOR; #elif USE_FORCED_GLES @@ -86,7 +86,7 @@ OpenGLSdlGraphicsManager::OpenGLSdlGraphicsManager(uint desktopWidth, uint deskt // // In case no defaults are given we prefer OpenGL over OpenGL ES. if (SDL_GL_GetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, &_glContextProfileMask) != 0) { - _glContextProfileMask = SDL_GL_CONTEXT_PROFILE_COMPATIBILITY; + _glContextProfileMask = 0; noDefaults = true; } @@ -103,7 +103,7 @@ OpenGLSdlGraphicsManager::OpenGLSdlGraphicsManager(uint desktopWidth, uint deskt _glContextMajor = DEFAULT_GLES_MAJOR; _glContextMinor = DEFAULT_GLES_MINOR; } else { - _glContextProfileMask = SDL_GL_CONTEXT_PROFILE_COMPATIBILITY; + _glContextProfileMask = 0; _glContextMajor = DEFAULT_GL_MAJOR; _glContextMinor = DEFAULT_GL_MINOR; } @@ -119,8 +119,8 @@ OpenGLSdlGraphicsManager::OpenGLSdlGraphicsManager(uint desktopWidth, uint deskt glContextType = OpenGL::kContextGL; // Core profile does not allow legacy functionality, which we use. - // Thus we always request a compatibility profile. - _glContextProfileMask = SDL_GL_CONTEXT_PROFILE_COMPATIBILITY; + // Thus we request a standard OpenGL context. + _glContextProfileMask = 0; _glContextMajor = DEFAULT_GL_MAJOR; _glContextMinor = DEFAULT_GL_MINOR; } else { -- cgit v1.2.3