[Scummvm-git-logs] scummvm master -> 59fa078d8ca3bfaacd2ba63c1331e3e7a6899919

neuromancer noreply at scummvm.org
Thu Nov 9 08:52:30 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:
59fa078d8c FREESCAPE: removed usage of glColor3ub in shader renderer


Commit: 59fa078d8ca3bfaacd2ba63c1331e3e7a6899919
    https://github.com/scummvm/scummvm/commit/59fa078d8ca3bfaacd2ba63c1331e3e7a6899919
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2023-11-09T09:52:17+01:00

Commit Message:
FREESCAPE: removed usage of glColor3ub in shader renderer

Changed paths:
    engines/freescape/gfx_opengl_shaders.cpp


diff --git a/engines/freescape/gfx_opengl_shaders.cpp b/engines/freescape/gfx_opengl_shaders.cpp
index dbcd98546de..e621f13b166 100644
--- a/engines/freescape/gfx_opengl_shaders.cpp
+++ b/engines/freescape/gfx_opengl_shaders.cpp
@@ -165,7 +165,7 @@ void OpenGLShaderRenderer::positionCamera(const Math::Vector3d &pos, const Math:
 void OpenGLShaderRenderer::renderSensorShoot(byte color, const Math::Vector3d sensor, const Math::Vector3d target, const Common::Rect viewArea) {
 	glEnable(GL_BLEND);
 	glBlendFunc(GL_ONE_MINUS_DST_COLOR, GL_ZERO);
-	glColor3ub(255, 255, 255);
+	useColor(255, 255, 255);
 
 	glLineWidth(20);
 	copyToVertexArray(0, sensor);




More information about the Scummvm-git-logs mailing list