From a3ae0e2279192a2775493542c46b50d1d1898bcc Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sun, 29 Jan 2017 17:47:29 -0400 Subject: [PATCH] Fix love.graphics.points when no per-point colors are given --HG-- branch : minor --- src/modules/graphics/Graphics.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/graphics/Graphics.cpp b/src/modules/graphics/Graphics.cpp index 4fff1405f..62503ae91 100644 --- a/src/modules/graphics/Graphics.cpp +++ b/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);