瀏覽代碼

[GRAPHICS] Fix hldx buffer format.

clandrin 3 年之前
父節點
當前提交
a08a00211f
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      h3d/scene/Graphics.hx

+ 2 - 0
h3d/scene/Graphics.hx

@@ -68,8 +68,10 @@ class Graphics extends Mesh {
 		if( is3D == v )
 			return v;
 		if( v ) {
+			material.texture = h3d.mat.Texture.fromColor(-1);
 			material.mainPass.removeShader(lineShader);
 		} else {
+			material.texture = null;
 			material.mainPass.addShader(lineShader);
 		}
 		bprim.clear();