mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
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.
This commit is contained in:
@@ -341,7 +341,7 @@ std::vector<Buffer::DataDeclaration> 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:
|
||||
|
||||
Reference in New Issue
Block a user