Skip to content

Commit

Permalink
After testing, you can use HaxePunk#575
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmxp committed Mar 21, 2018
1 parent a76c884 commit d5650a1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions haxepunk/graphics/hardware/HardwareRenderer.hx
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ class HardwareRenderer

public function new()
{
#if ios
defaultFramebuffer = new GLFramebuffer(GL.version, GL.getParameter(GL.FRAMEBUFFER_BINDING));
#end
//#if ios
//defaultFramebuffer = GL.createFramebuffer();
//#end
if (_ortho == null)
{
_ortho = new Float32Array(16);
Expand Down Expand Up @@ -140,7 +140,7 @@ class HardwareRenderer
GLUtils.checkForErrors();

setBlendMode(drawCommand.blend);

GLUtils.checkForErrors();
if (clipRect != null)
{
x += Std.int(Math.max(clipRect.x, 0));
Expand All @@ -149,7 +149,7 @@ class HardwareRenderer

GL.scissor(x, HXP.windowHeight - y - height, width, height);
GL.enable(GL.SCISSOR_TEST);

GLUtils.checkForErrors();
GL.drawArrays(GL.TRIANGLES, 0, triangles * 3);

GLUtils.checkForErrors();
Expand Down

0 comments on commit d5650a1

Please sign in to comment.