From 284d0a2e3ccb929af83b0dfdd91a71761b336d5f Mon Sep 17 00:00:00 2001 From: Serena Postelnek Date: Sun, 19 Oct 2025 12:35:40 -0400 Subject: [PATCH] Buffer: update XYf_STPf_RGBAub DataFormat This seems to be a simple typo, but since the texcoords are labeled as `STPf` the `DataFormat` should be `DATAFORMAT_FLOAT_VEC3`. Format `XYf_STPf` reflects this properly. --- src/modules/graphics/Buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/Buffer.cpp b/src/modules/graphics/Buffer.cpp index b8937e303..62e09df5e 100644 --- a/src/modules/graphics/Buffer.cpp +++ b/src/modules/graphics/Buffer.cpp @@ -341,7 +341,7 @@ std::vector Buffer::getCommonFormatDeclaration(CommonFo case CommonFormat::XYf_STPf_RGBAub: return { { getConstant(ATTRIB_POS), DATAFORMAT_FLOAT_VEC2, 0, ATTRIB_POS }, - { getConstant(ATTRIB_TEXCOORD), DATAFORMAT_FLOAT_VEC2, 0, ATTRIB_TEXCOORD }, + { getConstant(ATTRIB_TEXCOORD), DATAFORMAT_FLOAT_VEC3, 0, ATTRIB_TEXCOORD }, { getConstant(ATTRIB_COLOR), DATAFORMAT_UNORM8_VEC4, 0, ATTRIB_COLOR }, }; case CommonFormat::COUNT: