Explorar el Código

Fix infinite loop after removing a selfShader.

clementlandrin hace 2 años
padre
commit
58f2505c49
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      h3d/mat/Pass.hx

+ 2 - 0
h3d/mat/Pass.hx

@@ -312,6 +312,8 @@ class Pass {
 		selfShadersCache = shaders;
 		if ( prev != null )
 			prev.next = selfShadersCache;
+		else 
+			selfShaders = shaders;
 		return selfShaders;
 	}