浏览代码

RenderContext: Reset pass texture

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

+ 1 - 0
h3d/scene/RenderContext.hx

@@ -126,6 +126,7 @@ class RenderContext extends h3d.impl.RenderContext {
 			p.shaders = null;
 			p.next = null;
 			p.index = 0;
+			p.texture = 0;
 			p = p.nextAlloc;
 		}
 		pool = firstAlloc;