Skip to content

Commit 921cc73

Browse files
committed
Render Textures now use the frame source to store the glTexture in, not locally.
1 parent c98f5ed commit 921cc73

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/textures/TextureSource.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,9 @@ var TextureSource = new Class({
182182
}
183183
else if (this.isRenderTexture)
184184
{
185-
this.glTexture = this.source.texture;
186185
this.image = this.source.canvas;
186+
187+
this.glTexture = this.renderer.createTextureFromSource(null, this.width, this.height, this.scaleMode);
187188
}
188189
else
189190
{

0 commit comments

Comments
 (0)