Fix texture uniform setting in Shader.

This call was crashing with the more explicit location wrappers,
as the location hadn't actually been created yet.
The call isn't necessary, as uniforms are set before rendering.
This commit is contained in:
Ben Richards 2024-01-31 11:55:31 +13:00
parent b9deef7e61
commit 9b8bb39e7c

View file

@ -959,8 +959,6 @@ var Shader = new Class({
this.renderer.setProgram(this.program);
gl.uniform1i(uniform.uniformLocation.webGLUniformLocation, this._textureCount);
this._textureCount++;
},