Browse Source

updated CacheKey

Emmett Lalish 5 years ago
parent
commit
5269bcb913
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/renderers/webgl/WebGLPrograms.js

+ 4 - 4
src/renderers/webgl/WebGLPrograms.js

@@ -269,13 +269,13 @@ function WebGLPrograms( renderer, extensions, capabilities ) {
 
 			}
 
-		}
+			array.push( renderer.outputEncoding );
 
-		array.push( material.onBeforeCompile.toString() );
+			array.push( renderer.gammaFactor );
 
-		array.push( renderer.outputEncoding );
+		}
 
-		array.push( renderer.gammaFactor );
+		array.push( material.onBeforeCompile.toString() );
 
 		return array.join();