瀏覽代碼

Remove alloc on capsule light.

clementlandrin 1 年之前
父節點
當前提交
daea2d886f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/scene/pbr/CapsuleLight.hx

+ 1 - 1
h3d/scene/pbr/CapsuleLight.hx

@@ -70,7 +70,7 @@ class CapsuleLight extends Light {
 		pbr.radius = radius;
 		pbr.halfLength = length * 0.5;
 		pbr.occlusionFactor = occlusionFactor;
-		pbr.left = absPos.front();
+		pbr.left.load(absPos.front());
 		var d = range - radius;
 		pbr.invRange4 = 1 / (d * d * d * d);
 	}