瀏覽代碼

fix shared default texture causing invalid texture contexts

trethaller 5 年之前
父節點
當前提交
a65705f1e6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/pass/PointShadowMap.hx

+ 1 - 1
h3d/pass/PointShadowMap.hx

@@ -136,7 +136,7 @@ class PointShadowMap extends Shadows {
 		return true;
 	}
 
-	static var tmpTex : h3d.mat.Texture;
+	var tmpTex : h3d.mat.Texture;
 	override function createDefaultShadowMap() {
 		if( tmpTex != null) return tmpTex;
 		tmpTex = new h3d.mat.Texture(1,1, [Target,Cube], format);