mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 07:04:31 +00:00
Fix Shader recovery from WebGL context loss.
This commit is contained in:
parent
1ad6a64a81
commit
6f36e8201d
1 changed files with 1 additions and 0 deletions
|
@ -1088,6 +1088,7 @@ var Shader = new Class({
|
|||
gl.useProgram(program.webGLProgram);
|
||||
|
||||
gl.uniformMatrix4fv(gl.getUniformLocation(program.webGLProgram, 'uViewMatrix'), false, vm);
|
||||
gl.uniformMatrix4fv(gl.getUniformLocation(program.webGLProgram, 'uProjectionMatrix'), false, this.projectionMatrix);
|
||||
gl.uniform2f(gl.getUniformLocation(program.webGLProgram, 'uResolution'), this.width, this.height);
|
||||
|
||||
// Update fragment shader uniforms
|
||||
|
|
Loading…
Reference in a new issue