mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +00:00
WebGLRenderer.deleteTexture
will now run resetTextures(true)
first, incase the requested texture to be deleted is currently bound. Previously, it would delete the texture and then reset them.
This commit is contained in:
parent
7e40c7c08e
commit
a95c34ce92
1 changed files with 5 additions and 5 deletions
|
@ -2173,16 +2173,16 @@ var WebGLRenderer = new Class({
|
|||
*/
|
||||
deleteTexture: function (texture, reset)
|
||||
{
|
||||
if (reset)
|
||||
{
|
||||
this.resetTextures(true);
|
||||
}
|
||||
|
||||
if (texture)
|
||||
{
|
||||
this.gl.deleteTexture(texture);
|
||||
}
|
||||
|
||||
if (reset)
|
||||
{
|
||||
this.resetTextures();
|
||||
}
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue