[Scummvm-git-logs] scummvm master -> 2852b5cbba07bc7210c9fa3efbb82333986528b5

aquadran noreply at scummvm.org
Tue Oct 15 17:32:15 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:
2852b5cbba WINTERMUTE: Added missed change in previous commit


Commit: 2852b5cbba07bc7210c9fa3efbb82333986528b5
    https://github.com/scummvm/scummvm/commit/2852b5cbba07bc7210c9fa3efbb82333986528b5
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2024-10-15T19:32:10+02:00

Commit Message:
WINTERMUTE: Added missed change in previous commit

Changed paths:
    engines/wintermute/base/gfx/opengl/base_render_opengl3d.cpp


diff --git a/engines/wintermute/base/gfx/opengl/base_render_opengl3d.cpp b/engines/wintermute/base/gfx/opengl/base_render_opengl3d.cpp
index 040e6d169a2..7f74c3c5fc7 100644
--- a/engines/wintermute/base/gfx/opengl/base_render_opengl3d.cpp
+++ b/engines/wintermute/base/gfx/opengl/base_render_opengl3d.cpp
@@ -514,7 +514,7 @@ bool BaseRenderOpenGL3D::setup3D(Camera3D *camera, bool force) {
 			glLoadMatrixf(_lastViewMatrix.getData());
 		}
 
-		for (int i = 0; i < maximumLightsCount(); ++i) {
+		for (int i = 0; i < getMaxActiveLights(); ++i) {
 			glLightfv(GL_LIGHT0 + i, GL_POSITION, _lightPositions[i].getData());
 			glLightfv(GL_LIGHT0 + i, GL_SPOT_DIRECTION, _lightDirections[i].getData());
 		}




More information about the Scummvm-git-logs mailing list