|
@@ -1355,8 +1355,9 @@ class GlDriver extends Driver {
|
|
gl.disable(GL.SCISSOR_TEST);
|
|
gl.disable(GL.SCISSOR_TEST);
|
|
else {
|
|
else {
|
|
gl.enable(GL.SCISSOR_TEST);
|
|
gl.enable(GL.SCISSOR_TEST);
|
|
- var th = curTarget == null ? bufferHeight : curTarget.height;
|
|
|
|
- gl.scissor(x, th - (y + height), width, height);
|
|
|
|
|
|
+ if( curTarget == null )
|
|
|
|
+ y = bufferHeight - (y + height);
|
|
|
|
+ gl.scissor(x, y, width, height);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|