Explorar el Código

[GRAPHICS] Fix hldx buffer format.

clandrin hace 3 años
padre
commit
a08a00211f
Se han modificado 1 ficheros con 2 adiciones y 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();