mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
metal: workaround for garbage data being stored in pipeline keys
This commit is contained in:
@@ -318,9 +318,14 @@ struct VertexAttributes
|
|||||||
VertexAttributeInfo attribs[MAX];
|
VertexAttributeInfo attribs[MAX];
|
||||||
VertexBufferLayout bufferLayouts[BufferBindings::MAX];
|
VertexBufferLayout bufferLayouts[BufferBindings::MAX];
|
||||||
|
|
||||||
VertexAttributes() {}
|
VertexAttributes()
|
||||||
|
{
|
||||||
|
memset(this, 0, sizeof(VertexAttributes));
|
||||||
|
}
|
||||||
|
|
||||||
VertexAttributes(CommonFormat format, uint8 bufferindex)
|
VertexAttributes(CommonFormat format, uint8 bufferindex)
|
||||||
{
|
{
|
||||||
|
memset(this, 0, sizeof(VertexAttributes));
|
||||||
setCommonFormat(format, bufferindex);
|
setCommonFormat(format, bufferindex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user