love.graphics.newBuffer: prevent texel buffers from having more than one component in each array element.

This commit is contained in:
Sasha Szpakowski
2026-08-26 00:44:58 -03:00
parent f78ed8371e
commit a5c876c982
+2 -2
View File
@@ -117,8 +117,8 @@ Buffer::Buffer(Graphics *gfx, const Settings &settings, const std::vector<DataDe
if (texelbuffer)
{
if (format != bufferformat[0].format)
throw love::Exception("All values in a texel buffer must have the same format.");
if (bufferformat.size() > 1)
throw love::Exception("Texel buffers only support a single value per element.");
if (decl.arrayLength > 0)
throw love::Exception("Arrays are not supported in texel buffers.");