diff options
author | Johannes Schickel | 2015-12-22 06:51:14 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-03-16 20:29:26 +0100 |
commit | b8d79261eda49671e6ae63592412a80ac49cc893 (patch) | |
tree | aa9e1d97e8e83ee9ad833c7f75a16660ae94badb /backends/graphics/openglsdl | |
parent | 8a3eecb73a9eb5d885e3585835db6bee738c1de5 (diff) | |
download | scummvm-rg350-b8d79261eda49671e6ae63592412a80ac49cc893.tar.gz scummvm-rg350-b8d79261eda49671e6ae63592412a80ac49cc893.tar.bz2 scummvm-rg350-b8d79261eda49671e6ae63592412a80ac49cc893.zip |
OPENGLSDL: Request "standard" GL contexts.
Compatibility profiles only exist in modern OpenGL and we request an ancient
version.
Diffstat (limited to 'backends/graphics/openglsdl')
-rw-r--r-- | backends/graphics/openglsdl/openglsdl-graphics.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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 { |