Browse Source

Fix love.graphics.points when no per-point colors are given

--HG--
branch : minor
Alex Szpakowski 8 years ago
parent
commit
a3ae0e2279
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/modules/graphics/Graphics.cpp

+ 1 - 2
src/modules/graphics/Graphics.cpp

@@ -708,8 +708,7 @@ void Graphics::points(const float *coords, const Colorf *colors, size_t numpoint
 	StreamDrawRequest req;
 	req.primitiveMode = vertex::PrimitiveMode::POINTS;
 	req.formats[0] = vertex::CommonFormat::XYf;
-	if (colors)
-		req.formats[1] = vertex::CommonFormat::RGBAub;
+	req.formats[1] = vertex::CommonFormat::RGBAub;
 	req.vertexCount = (int) numpoints;
 
 	StreamVertexData data = requestStreamDraw(req);