mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
Fix windows build
--HG-- branch : minor
This commit is contained in:
@@ -37,8 +37,6 @@ static_assert(sizeof(XYf_STf_RGBAub) == sizeof(float)*2 + sizeof(float)*2 + size
|
||||
static_assert(sizeof(XYf_STus_RGBAub) == sizeof(float)*2 + sizeof(uint16)*2 + sizeof(Color), "sizeof(XYf_STus_RGBAub) incorrect!");
|
||||
static_assert(sizeof(XYf_STPf_RGBAub) == sizeof(float)*2 + sizeof(float)*3 + sizeof(Color), "sizeof(XYf_STPf_RGBAub) incorrect!");
|
||||
|
||||
static_assert(sizeof(AttributeInfo) == sizeof(uint64), "sizeof(AttributeInfo) incorrect!");
|
||||
|
||||
size_t getFormatStride(CommonFormat format)
|
||||
{
|
||||
switch (format)
|
||||
|
||||
@@ -212,11 +212,7 @@ struct Attributes
|
||||
uint32 enablebits = 0;
|
||||
uint32 instancebits = 0;
|
||||
|
||||
union
|
||||
{
|
||||
AttributeInfo attribs[MAX];
|
||||
uint64 data[MAX];
|
||||
};
|
||||
AttributeInfo attribs[MAX];
|
||||
|
||||
Attributes() {}
|
||||
Attributes(CommonFormat format, uint8 bufferindex)
|
||||
@@ -263,28 +259,6 @@ struct Attributes
|
||||
}
|
||||
|
||||
void setCommonFormat(CommonFormat format, uint8 bufferindex);
|
||||
|
||||
bool operator == (const Attributes &other) const
|
||||
{
|
||||
if (enablebits != other.enablebits)
|
||||
return false;
|
||||
|
||||
uint32 instancediff = instancebits ^ other.instancebits;
|
||||
|
||||
for (unsigned int i = 0; i < MAX; i++)
|
||||
{
|
||||
if (isEnabled(i))
|
||||
{
|
||||
if (instancediff & (1u << i))
|
||||
return false;
|
||||
|
||||
if (data[i] != other.data[i])
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
size_t getFormatStride(CommonFormat format);
|
||||
|
||||
Reference in New Issue
Block a user