浏览代码

Fix GL shader compilation

TothBenoit 10 月之前
父节点
当前提交
6ce2b53f11
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 js
 			if ( mod(pixels.x, 2) != mod(pixels.y, 2) )
 			if ( mod(pixels.x, 2) != mod(pixels.y, 2) )
             #else
             #else
-			if ( int(pixels.x) & 1 != int(pixels.y) & 1 )
+			if ( (int(pixels.x) & 1) != (int(pixels.y) & 1) )
             #end
             #end
 				pixelColor = max(s00, max(s01, max(s10, s11)));
 				pixelColor = max(s00, max(s01, max(s10, s11)));
 			else
 			else