Selaa lähdekoodia

Revert 3699896663800729100d34f9b1f26ef3cb97b7f5. Not a correct fix

Nicolas Cannasse 6 vuotta sitten
vanhempi
commit
615dee50b7
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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);
 		}
 	}