From a5c876c982f97ff8dd7fb60860f0b5eca38b9784 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Wed, 26 Aug 2026 00:44:58 -0300 Subject: [PATCH] love.graphics.newBuffer: prevent texel buffers from having more than one component in each array element. --- src/modules/graphics/Buffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/graphics/Buffer.cpp b/src/modules/graphics/Buffer.cpp index e79292630..5ab3e2e96 100644 --- a/src/modules/graphics/Buffer.cpp +++ b/src/modules/graphics/Buffer.cpp @@ -117,8 +117,8 @@ Buffer::Buffer(Graphics *gfx, const Settings &settings, const std::vector 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.");