mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 20:23:19 +00:00
Handle more invalidated state on WebGL context restore.
This commit is contained in:
parent
4c849cb2f7
commit
b66028ec8e
1 changed files with 8 additions and 0 deletions
|
@ -1207,6 +1207,14 @@ var WebGLPipeline = new Class({
|
|||
{
|
||||
var shaders = this.shaders;
|
||||
|
||||
// Deactivate all invalidated state.
|
||||
this.activeBuffer = null;
|
||||
this.activeTextures.length = 0;
|
||||
this.batch.length = 0;
|
||||
this.currentBatch = null;
|
||||
this.currentTexture = null;
|
||||
this.currentUnit = 0;
|
||||
|
||||
for (var i = 0; i < shaders.length; i++)
|
||||
{
|
||||
shaders[i].syncUniforms();
|
||||
|
|
Loading…
Reference in a new issue