From 3c1d4304b1af786002c4b43b681f2fdb0a9d6ee8 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Tue, 27 Dec 2016 22:03:08 -0400 Subject: [PATCH] Is MSVC happy with this? --HG-- branch : minor --- src/modules/graphics/Graphics.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/graphics/Graphics.h b/src/modules/graphics/Graphics.h index 2d1dfa8b8..a3b107337 100644 --- a/src/modules/graphics/Graphics.h +++ b/src/modules/graphics/Graphics.h @@ -229,10 +229,14 @@ public: struct StreamDrawRequest { vertex::PrimitiveMode primitiveMode = vertex::PrimitiveMode::TRIANGLES; - vertex::CommonFormat formats[2] = {vertex::CommonFormat::NONE, vertex::CommonFormat::NONE}; + vertex::CommonFormat formats[2]; vertex::TriangleIndexMode indexMode = vertex::TriangleIndexMode::NONE; int vertexCount = 0; Texture *texture = nullptr; + + StreamDrawRequest() + : formats{vertex::CommonFormat::NONE, vertex::CommonFormat::NONE} + {} }; struct StreamVertexData