ソースを参照

Fix GL shader compilation

TothBenoit 11 ヶ月 前
コミット
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 ( 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