diff --git a/src/modules/graphics/vertex.h b/src/modules/graphics/vertex.h index 006df24a7..34d30bbe1 100644 --- a/src/modules/graphics/vertex.h +++ b/src/modules/graphics/vertex.h @@ -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); }