Skip to content

Commit

Permalink
xml3d#112: Canvas target should also set the viewport when bound
Browse files Browse the repository at this point in the history
  • Loading branch information
csvurt authored and ariyapour committed Nov 9, 2015
1 parent cf38cb2 commit 15b7bf4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer/webgl/base/rendertarget.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ XML3D.extend(GLCanvasTarget.prototype, {
return this.height;
}, getScale: function () {
return 1;
}, bind: empty, unbind: empty, resize: empty
}, bind: function() {
this.context.gl.viewport(0, 0, this.width, this.height);
}, unbind: empty, resize: empty
});

/**
Expand Down

0 comments on commit 15b7bf4

Please sign in to comment.