mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
render target dimensions don't affect viewport
This commit is contained in:
parent
e83db4445f
commit
b1b184aed4
1 changed files with 0 additions and 1 deletions
|
@ -200,7 +200,6 @@ WebGLRenderer.prototype = {
|
|||
if (renderTarget !== null)
|
||||
{
|
||||
gl.bindFramebuffer(gl.FRAMEBUFFER, renderTarget.framebufferObject);
|
||||
gl.viewport(0, 0, renderTarget.width, renderTarget.height);
|
||||
if (renderTarget.shouldClear)
|
||||
{
|
||||
gl.clearColor(0, 0, 0, 0);
|
||||
|
|
Loading…
Reference in a new issue