Explorar o código

[GRAPHICS] Fix hldx buffer format.

clandrin %!s(int64=3) %!d(string=hai) anos
pai
achega
a08a00211f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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();