[Scummvm-git-logs] scummvm master -> b3d86b6f9c68999285b65f7a90631f9f1f110024
neuromancer
noreply at scummvm.org
Fri Dec 16 22:24:41 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:
b3d86b6f9c FREESCAPE: bind the default empty texture to avoid darker colors in the OpenGL renderer
Commit: b3d86b6f9c68999285b65f7a90631f9f1f110024
https://github.com/scummvm/scummvm/commit/b3d86b6f9c68999285b65f7a90631f9f1f110024
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2022-12-16T19:22:44-03:00
Commit Message:
FREESCAPE: bind the default empty texture to avoid darker colors in the OpenGL renderer
Changed paths:
engines/freescape/gfx_opengl.cpp
diff --git a/engines/freescape/gfx_opengl.cpp b/engines/freescape/gfx_opengl.cpp
index 8e080ba6e1e..43dd0f16b46 100644
--- a/engines/freescape/gfx_opengl.cpp
+++ b/engines/freescape/gfx_opengl.cpp
@@ -142,6 +142,7 @@ void OpenGLRenderer::drawTexturedRect2D(const Common::Rect &screenRect, const Co
glDisable(GL_BLEND);
glDepthMask(GL_TRUE);
glEnable(GL_DEPTH_TEST);
+ glBindTexture(GL_TEXTURE_2D, 0); // Bind the default (empty) texture to avoid darker colors!
glFlush();
}
More information about the Scummvm-git-logs
mailing list