Fix some compile warnings

This commit is contained in:
Sasha Szpakowski
2024-12-29 14:09:13 -04:00
parent 8443928fe7
commit fe23e1920b
6 changed files with 24 additions and 21 deletions
+3 -1
View File
@@ -106,7 +106,7 @@ Buffer::Buffer(Graphics *gfx, const Settings &settings, const std::vector<DataDe
if (info.baseType == DATA_BASETYPE_BOOL)
throw love::Exception("Bool types are not supported in vertex buffers.");
if (decl.bindingLocation < 0 || decl.bindingLocation >= VertexAttributes::MAX)
if (decl.bindingLocation < 0 || decl.bindingLocation >= (int) VertexAttributes::MAX)
{
if (decl.bindingLocation == -1 && !decl.name.empty())
legacyVertexBindings = true;
@@ -344,6 +344,8 @@ std::vector<Buffer::DataDeclaration> Buffer::getCommonFormatDeclaration(CommonFo
{ getConstant(ATTRIB_TEXCOORD), DATAFORMAT_FLOAT_VEC2, 0, ATTRIB_TEXCOORD },
{ getConstant(ATTRIB_COLOR), DATAFORMAT_UNORM8_VEC4, 0, ATTRIB_COLOR },
};
case CommonFormat::COUNT:
return {};
}
return {};