[Scummvm-git-logs] scummvm master -> 6d7e929197928f41cce81dc341dc57ead39a7a7c

digitall noreply at scummvm.org
Wed Mar 20 18:51:38 UTC 2024


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:
6d7e929197 GRIM: Fix GCC Unused Variable Warnings


Commit: 6d7e929197928f41cce81dc341dc57ead39a7a7c
    https://github.com/scummvm/scummvm/commit/6d7e929197928f41cce81dc341dc57ead39a7a7c
Author: D G Turner (digitall at scummvm.org)
Date: 2024-03-20T18:50:57Z

Commit Message:
GRIM: Fix GCC Unused Variable Warnings

Changed paths:
    engines/grim/gfx_opengl.cpp


diff --git a/engines/grim/gfx_opengl.cpp b/engines/grim/gfx_opengl.cpp
index 8180f638670..fe763d79fbf 100644
--- a/engines/grim/gfx_opengl.cpp
+++ b/engines/grim/gfx_opengl.cpp
@@ -50,6 +50,7 @@ GfxBase *CreateGfxOpenGL() {
 	return new GfxOpenGL();
 }
 
+#ifdef GL_ARB_fragment_program
 // Simple ARB fragment program that writes the value from a texture to the Z-buffer.
 static char fragSrc[] =
 	"!!ARBfp1.0\n\
@@ -74,6 +75,7 @@ static char dimFragSrc[] =
 	MOV result.color.g, sum;\n\
 	MOV result.color.b, sum;\n\
 	END\n";
+#endif
 
 GfxOpenGL::GfxOpenGL() : _smushNumTex(0),
 		_smushTexIds(nullptr), _smushWidth(0), _smushHeight(0),




More information about the Scummvm-git-logs mailing list