浏览代码

fixed passobject pool handling

ncannasse 6 年之前
父节点
当前提交
988c88e4e2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/scene/RenderContext.hx

+ 1 - 1
h3d/scene/RenderContext.hx

@@ -133,7 +133,7 @@ class RenderContext extends h3d.impl.RenderContext {
 		}
 		// one pooled object was not used this frame, let's gc unused one by one
 		if( allocPool != null )
-			allocFirst = allocFirst.next;
+			allocFirst = @:privateAccess allocFirst.nextAlloc;
 		allocPool = allocFirst;
 		for( c in cachedShaderList ) {
 			c.s = null;