[Scummvm-git-logs] scummvm master -> e301905875acf2879f75d7b63875ea182000cfdd

lephilousophe noreply at scummvm.org
Wed Feb 19 17:49:50 UTC 2025


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:
e301905875 GRAPHICS: OPENGL: Fix shader version check discrepancy


Commit: e301905875acf2879f75d7b63875ea182000cfdd
    https://github.com/scummvm/scummvm/commit/e301905875acf2879f75d7b63875ea182000cfdd
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2025-02-19T18:49:22+01:00

Commit Message:
GRAPHICS: OPENGL: Fix shader version check discrepancy

We required version 110 for OpenGL backend shaders while we only checked
for version 100, although this version is not expected to work without
proper ARB extension support.
Increase minimum supported version to 1.10 which matches OpenGL 2.0

Changed paths:
    graphics/opengl/context.cpp


diff --git a/graphics/opengl/context.cpp b/graphics/opengl/context.cpp
index 767f4739889..94844baff9e 100644
--- a/graphics/opengl/context.cpp
+++ b/graphics/opengl/context.cpp
@@ -253,7 +253,10 @@ void Context::initialize(ContextType contextType) {
 		// No mirror repeat in GLES
 		debug(5, "OpenGL: GLES context initialized");
 	} else if (type == kContextGL) {
-		shadersSupported = glslVersion >= 100;
+		// Official support of shaders starts with version 110
+		// Older versions didn't support the #version directive and were only available through
+		// ARB extensions which we removed support for
+		shadersSupported = glslVersion >= 110;
 
 		// In GL mode engines need GLSL 1.20
 		enginesShadersSupported = glslVersion >= 120;




More information about the Scummvm-git-logs mailing list