Browse Source

Fix GL shader compilation

TothBenoit 10 months ago
parent
commit
6ce2b53f11
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h3d/shader/CheckerboardDepth.hx

+ 1 - 1
h3d/shader/CheckerboardDepth.hx

@@ -22,7 +22,7 @@ class CheckerboardDepth extends h3d.shader.ScreenShader {
             #if js
 			if ( mod(pixels.x, 2) != mod(pixels.y, 2) )
             #else
-			if ( int(pixels.x) & 1 != int(pixels.y) & 1 )
+			if ( (int(pixels.x) & 1) != (int(pixels.y) & 1) )
             #end
 				pixelColor = max(s00, max(s01, max(s10, s11)));
 			else