From 3ea95d9483061f407bc107cf2a434151cb0e48fd Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 18 Aug 2019 03:53:38 -0400 Subject: [PATCH] IGraphicsDataFactory: Default initialize semantic for VertexElementDescriptor Makes initialization deterministic for the default constructor. --- include/boo/graphicsdev/IGraphicsDataFactory.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boo/graphicsdev/IGraphicsDataFactory.hpp b/include/boo/graphicsdev/IGraphicsDataFactory.hpp index c1ce43d..22f4713 100644 --- a/include/boo/graphicsdev/IGraphicsDataFactory.hpp +++ b/include/boo/graphicsdev/IGraphicsDataFactory.hpp @@ -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) {}