mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +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];
|
||||
VertexBufferLayout bufferLayouts[BufferBindings::MAX];
|
||||
|
||||
VertexAttributes() {}
|
||||
VertexAttributes()
|
||||
{
|
||||
memset(this, 0, sizeof(VertexAttributes));
|
||||
}
|
||||
|
||||
VertexAttributes(CommonFormat format, uint8 bufferindex)
|
||||
{
|
||||
memset(this, 0, sizeof(VertexAttributes));
|
||||
setCommonFormat(format, bufferindex);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user