mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 15:14:47 +00:00
If normal map set, advance the current active texture
This commit is contained in:
parent
3dd6d8a1a4
commit
12fc51e2e2
1 changed files with 5 additions and 0 deletions
|
@ -1486,6 +1486,11 @@ var WebGLRenderer = new Class({
|
|||
gl.bindTexture(gl.TEXTURE_2D, texture);
|
||||
|
||||
this.normalTexture = texture;
|
||||
|
||||
if (this.currentActiveTexture === 1)
|
||||
{
|
||||
this.currentActiveTexture = 2;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue