[Scummvm-git-logs] scummvm master -> 15235fa8ad1eb52537cc489aef1b9e038e0816ec
lephilousophe
noreply at scummvm.org
Wed Jul 13 17:00:36 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:
15235fa8ad OPENGL: Add workaround for AmigaOS which supports GLSL 0.9
Commit: 15235fa8ad1eb52537cc489aef1b9e038e0816ec
https://github.com/scummvm/scummvm/commit/15235fa8ad1eb52537cc489aef1b9e038e0816ec
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2022-07-13T19:00:15+02:00
Commit Message:
OPENGL: Add workaround for AmigaOS which supports GLSL 0.9
Changed paths:
graphics/opengl/context.cpp
diff --git a/graphics/opengl/context.cpp b/graphics/opengl/context.cpp
index c7f5fb7cd0b..3172e7c33b7 100644
--- a/graphics/opengl/context.cpp
+++ b/graphics/opengl/context.cpp
@@ -184,6 +184,13 @@ void Context::initialize(ContextType contextType) {
}
if (type == kContextGLES2) {
+// OGLES2 on AmigaOS reports GLSL version as 0.9 but we do what is needed to make it work
+// so let's pretend it supports 1.00
+#if defined(AMIGAOS)
+ if (glslVersion < 100) {
+ glslVersion = 100;
+ }
+#endif
// GLES2 always has (limited) NPOT support.
NPOTSupported = true;
More information about the Scummvm-git-logs
mailing list