mirror of
https://github.com/photonstorm/phaser
synced 2025-02-18 06:58:30 +00:00
Reset the buffer and textures on rebind.
This commit is contained in:
parent
6220d9b18d
commit
2f720246ab
1 changed files with 4 additions and 0 deletions
|
@ -1125,6 +1125,8 @@ var WebGLPipeline = new Class({
|
|||
*/
|
||||
rebind: function (currentShader)
|
||||
{
|
||||
this.activeBuffer = null;
|
||||
|
||||
this.setVertexBuffer();
|
||||
|
||||
var shaders = this.shaders;
|
||||
|
@ -1140,6 +1142,8 @@ var WebGLPipeline = new Class({
|
|||
}
|
||||
}
|
||||
|
||||
this.activeTextures.length = 0;
|
||||
|
||||
this.emit(Events.REBIND, this.currentShader);
|
||||
|
||||
this.onActive(this.currentShader);
|
||||
|
|
Loading…
Add table
Reference in a new issue