metal: workaround for garbage data being stored in pipeline keys

This commit is contained in:
Alex Szpakowski
2021-03-27 17:46:43 -03:00
parent da6fd95a64
commit 326dfe2632
+6 -1
View File
@@ -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);
}