Explorar o código

Fix MRTT Parallel Shader Compile

sebavan %!s(int64=6) %!d(string=hai) anos
pai
achega
412555d956
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Engines/engine.ts

+ 1 - 1
src/Engines/engine.ts

@@ -5460,7 +5460,7 @@ export class Engine {
 
     private _bindSamplerUniformToChannel(sourceSlot: number, destination: number) {
         let uniform = this._boundUniforms[sourceSlot];
-        if (uniform._currentState === destination) {
+        if (!uniform || uniform._currentState === destination) {
             return;
         }
         this._gl.uniform1i(uniform, destination);