[Scummvm-git-logs] scummvm master -> 7c462deab5277ae9b00654c5ecf1238558337db2

neuromancer noreply at scummvm.org
Thu Apr 6 20:21:16 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:
7c462deab5 FREESCAPE: make triangle shader more compatible with gles2


Commit: 7c462deab5277ae9b00654c5ecf1238558337db2
    https://github.com/scummvm/scummvm/commit/7c462deab5277ae9b00654c5ecf1238558337db2
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2023-04-06T22:23:06+02:00

Commit Message:
FREESCAPE: make triangle shader more compatible with gles2

Changed paths:
    engines/freescape/shaders/freescape_triangle.fragment


diff --git a/engines/freescape/shaders/freescape_triangle.fragment b/engines/freescape/shaders/freescape_triangle.fragment
index 8ab397df899..2088bdc4357 100644
--- a/engines/freescape/shaders/freescape_triangle.fragment
+++ b/engines/freescape/shaders/freescape_triangle.fragment
@@ -8,8 +8,8 @@ varying vec4 var_color;
 void main()
 {
 	if (UBOOL_TEST(useStipple)) {
-		ivec2 coord = ivec2(gl_FragCoord.xy - 0.5);
-		if (stipple[int(mod(coord.x, 8) + mod(coord.y, 8) * 8)] == 0)
+		vec2 coord = ivec2(gl_FragCoord.xy - 0.5);
+		if (stipple[int(mod(coord.x, 8.) + mod(coord.y, 8.) * 8)] == 0)
 			discard;
 	}
 




More information about the Scummvm-git-logs mailing list