[Scummvm-git-logs] scummvm master -> 06e2623568316d9ed6bca6976229461fcfd2411d
aquadran
noreply at scummvm.org
Tue Sep 30 06:45:13 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
06e2623568 TINYGL: Fixed regression / restored to original code.
Commit: 06e2623568316d9ed6bca6976229461fcfd2411d
https://github.com/scummvm/scummvm/commit/06e2623568316d9ed6bca6976229461fcfd2411d
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2025-09-30T08:45:09+02:00
Commit Message:
TINYGL: Fixed regression / restored to original code.
Current color should not be taking into account in shading when
lights are on.
Changed paths:
graphics/tinygl/light.cpp
diff --git a/graphics/tinygl/light.cpp b/graphics/tinygl/light.cpp
index f0a9f6791ab..b8e57cfdf6d 100644
--- a/graphics/tinygl/light.cpp
+++ b/graphics/tinygl/light.cpp
@@ -309,10 +309,10 @@ void GLContext::gl_shade_vertex(GLVertex *v) {
B += att * lB;
}
- v->color.X = clampf(current_color.X * R, 0, 1);
- v->color.Y = clampf(current_color.Y * G, 0, 1);
- v->color.Z = clampf(current_color.Z * B, 0, 1);
- v->color.W = current_color.W * A;
+ v->color.X = clampf(R, 0, 1);
+ v->color.Y = clampf(G, 0, 1);
+ v->color.Z = clampf(B, 0, 1);
+ v->color.W = A;
}
} // end of namespace TinyGL
More information about the Scummvm-git-logs
mailing list