diff --git a/src/core/textures/RenderTexture.js b/src/core/textures/RenderTexture.js index 64acb8d..0d132c6 100644 --- a/src/core/textures/RenderTexture.js +++ b/src/core/textures/RenderTexture.js @@ -139,7 +139,7 @@ */ this.renderer = renderer; - if (this.renderer.type === CONST.WEBGL_RENDERER) + if (this.renderer.type === CONST.RENDERER_TYPE.WEBGL) { var gl = this.renderer.gl; @@ -194,7 +194,7 @@ this.baseTexture.height = this.height; } - if (this.renderer.type === CONST.WEBGL_RENDERER) + if (this.renderer.type === CONST.RENDERER_TYPE.WEBGL) { this.projection.x = this.width / 2; this.projection.y = -this.height / 2; @@ -219,7 +219,7 @@ return; } - if (this.renderer.type === CONST.WEBGL_RENDERER) + if (this.renderer.type === CONST.RENDERER_TYPE.WEBGL) { this.renderer.gl.bindFramebuffer(this.renderer.gl.FRAMEBUFFER, this.textureBuffer.frameBuffer); } @@ -402,7 +402,7 @@ */ RenderTexture.prototype.getCanvas = function () { - if (this.renderer.type === CONST.WEBGL_RENDERER) + if (this.renderer.type === CONST.RENDERER_TYPE.WEBGL) { var gl = this.renderer.gl; var width = this.textureBuffer.width;