mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Fix some compile warnings
This commit is contained in:
@@ -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 {};
|
||||
|
||||
Reference in New Issue
Block a user