瀏覽代碼

updated CacheKey

Emmett Lalish 5 年之前
父節點
當前提交
5269bcb913
共有 1 個文件被更改,包括 4 次插入4 次删除
  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();