Ver Fonte

Revert 3699896663800729100d34f9b1f26ef3cb97b7f5. Not a correct fix

Nicolas Cannasse há 6 anos atrás
pai
commit
615dee50b7
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      h3d/impl/GlDriver.hx

+ 2 - 0
h3d/impl/GlDriver.hx

@@ -1383,6 +1383,8 @@ class GlDriver extends Driver {
 			gl.disable(GL.SCISSOR_TEST);
 		else {
 			gl.enable(GL.SCISSOR_TEST);
+			if( curTarget == null )
+				y = bufferHeight - (y + height);
 			gl.scissor(x, y, width, height);
 		}
 	}