Fix Shader recovery from WebGL context loss.

This commit is contained in:
Ben Richards 2024-02-02 17:43:53 +13:00
parent 1ad6a64a81
commit 6f36e8201d

View file

@ -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