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

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-01-29 17:47:29 -04:00
parent 98493d9844
commit a3ae0e2279
+1 -2
View File
@@ -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);