IGraphicsDataFactory: Default initialize semantic for VertexElementDescriptor

Makes initialization deterministic for the default constructor.
This commit is contained in:
Lioncash 2019-08-18 03:53:38 -04:00
parent 2b63413369
commit 3ea95d9483
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ ENABLE_BITWISE_ENUM(VertexSemantic)
/** Used to create IVertexFormat */
struct VertexElementDescriptor {
VertexSemantic semantic;
VertexSemantic semantic{};
int semanticIdx = 0;
VertexElementDescriptor() = default;
VertexElementDescriptor(VertexSemantic s, int idx = 0) : semantic(s), semanticIdx(idx) {}