소스 검색

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