فهرست منبع

Fix null access on pass selfShaders.

clementlandrin 2 سال پیش
والد
کامیت
2bb6d00052
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      h3d/mat/Pass.hx

+ 2 - 1
h3d/mat/Pass.hx

@@ -310,7 +310,8 @@ class Pass {
 			sl = sl.next;
 		}
 		selfShadersCache = shaders;
-		prev.next = selfShadersCache;
+		if ( prev != null )
+			prev.next = selfShadersCache;
 		return selfShaders;
 	}