[Scummvm-git-logs] scummvm master -> b21591c444b68d8f076b34e9706d53ec28b5dd7a
neuromancer
noreply at scummvm.org
Sat Jul 1 20:50:11 UTC 2023
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:
b21591c444 FREESCAPE: initialize r, g and b variables in renderPlayerShoot
Commit: b21591c444b68d8f076b34e9706d53ec28b5dd7a
https://github.com/scummvm/scummvm/commit/b21591c444b68d8f076b34e9706d53ec28b5dd7a
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2023-07-01T22:52:04+02:00
Commit Message:
FREESCAPE: initialize r, g and b variables in renderPlayerShoot
Changed paths:
engines/freescape/gfx_opengl.cpp
engines/freescape/gfx_opengl_shaders.cpp
diff --git a/engines/freescape/gfx_opengl.cpp b/engines/freescape/gfx_opengl.cpp
index ff692cee8a4..2ec6dcfc289 100644
--- a/engines/freescape/gfx_opengl.cpp
+++ b/engines/freescape/gfx_opengl.cpp
@@ -202,6 +202,7 @@ void OpenGLRenderer::renderPlayerShoot(byte color, const Common::Point position,
if (_renderMode == Common::kRenderCGA || _renderMode == Common::kRenderZX) {
r = g = b = 255;
} else {
+ r = g = b = 0;
glEnable(GL_COLOR_LOGIC_OP);
glLogicOp(GL_INVERT);
}
diff --git a/engines/freescape/gfx_opengl_shaders.cpp b/engines/freescape/gfx_opengl_shaders.cpp
index 56c203b7955..7e75cdd9057 100644
--- a/engines/freescape/gfx_opengl_shaders.cpp
+++ b/engines/freescape/gfx_opengl_shaders.cpp
@@ -198,6 +198,7 @@ void OpenGLShaderRenderer::renderPlayerShoot(byte color, const Common::Point pos
if (_renderMode == Common::kRenderCGA || _renderMode == Common::kRenderZX) {
r = g = b = 255;
} else {
+ r = g = b = 0;
glEnable(GL_COLOR_LOGIC_OP);
glLogicOp(GL_INVERT);
}
More information about the Scummvm-git-logs
mailing list