mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
fix on settexture2D
This commit is contained in:
parent
c40e94f15b
commit
c37c69e312
1 changed files with 5 additions and 1 deletions
|
@ -152,7 +152,11 @@ WebGLRenderer.prototype = {
|
||||||
{
|
{
|
||||||
if (this.currentTexture2D != texture2D)
|
if (this.currentTexture2D != texture2D)
|
||||||
{
|
{
|
||||||
this.flush();
|
var batch = this.batch;
|
||||||
|
if (batch)
|
||||||
|
{
|
||||||
|
batch.flush();
|
||||||
|
}
|
||||||
gl.activeTexture(gl.TEXTURE0);
|
gl.activeTexture(gl.TEXTURE0);
|
||||||
gl.bindTexture(gl.TEXTURE_2D, texture2D);
|
gl.bindTexture(gl.TEXTURE_2D, texture2D);
|
||||||
this.currentTexture2D = texture2D;
|
this.currentTexture2D = texture2D;
|
||||||
|
|
Loading…
Reference in a new issue