Skip to content

Commit

Permalink
Make setRenderToBackBuffer() set the viewport as setRenderToTexture()…
Browse files Browse the repository at this point in the history
… does.
  • Loading branch information
Type1J committed May 9, 2015
1 parent 0c6270d commit 7535f9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openfl/display3D/Context3D.hx
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,8 @@ class Context3D {

}

GL.viewport (Std.int (scrollRect.x), Std.int (scrollRect.y), Std.int (scrollRect.width), Std.int (scrollRect.height));

}


Expand Down Expand Up @@ -1046,4 +1048,4 @@ private class SamplerState {

#else
typedef Context3D = flash.display3D.Context3D;
#end
#end

0 comments on commit 7535f9e

Please sign in to comment.