mirror of
https://github.com/love2d/love.git
synced 2026-08-17 02:58:31 +02:00
Fix love.graphics.points when no per-point colors are given
--HG-- branch : minor
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user