[Scummvm-git-logs] scummvm master -> 85692963843a47fe715b61c5a5da0c01bbee7a35
lephilousophe
noreply at scummvm.org
Fri May 27 16:13:23 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
8569296384 OPENGL: Detect framebuffer support using GL_ARB_framebuffer_object
Commit: 85692963843a47fe715b61c5a5da0c01bbee7a35
https://github.com/scummvm/scummvm/commit/85692963843a47fe715b61c5a5da0c01bbee7a35
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2022-05-27T18:13:10+02:00
Commit Message:
OPENGL: Detect framebuffer support using GL_ARB_framebuffer_object
We use functions from GL_ARB_framebuffer_object extension and not from
GL_EXT_framebuffer_object where functions are suffixed by EXT.
This avoids crashes on implementations supporting only the EXT version.
Changed paths:
backends/graphics/opengl/context.cpp
graphics/opengl/context.cpp
diff --git a/backends/graphics/opengl/context.cpp b/backends/graphics/opengl/context.cpp
index d7034b508f1..30907248415 100644
--- a/backends/graphics/opengl/context.cpp
+++ b/backends/graphics/opengl/context.cpp
@@ -172,7 +172,7 @@ void OpenGLGraphicsManager::initializeGLContext() {
ARBFragmentShader = true;
} else if (token == "GL_ARB_multitexture") {
g_context.multitextureSupported = true;
- } else if (token == "GL_EXT_framebuffer_object") {
+ } else if (token == "GL_ARB_framebuffer_object") {
g_context.framebufferObjectSupported = true;
} else if (token == "GL_EXT_packed_pixels" || token == "GL_APPLE_packed_pixels") {
g_context.packedPixelsSupported = true;
diff --git a/graphics/opengl/context.cpp b/graphics/opengl/context.cpp
index c2029a2f169..3d30e9a58c2 100644
--- a/graphics/opengl/context.cpp
+++ b/graphics/opengl/context.cpp
@@ -135,7 +135,7 @@ void ContextGL::initialize(ContextOGLType contextType) {
ARBVertexShader = true;
} else if (token == "GL_ARB_fragment_shader") {
ARBFragmentShader = true;
- } else if (token == "GL_EXT_framebuffer_object") {
+ } else if (token == "GL_ARB_framebuffer_object") {
framebufferObjectSupported = true;
} else if (token == "GL_EXT_packed_depth_stencil" || token == "GL_OES_packed_depth_stencil") {
packedDepthStencilSupported = true;
More information about the Scummvm-git-logs
mailing list