From 70df473680a19c365d9469e22dc5ad82cd6d0e3e Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Tue, 27 Dec 2016 22:48:43 -0400 Subject: [PATCH] Fix compilation in VS2013. --HG-- branch : minor --- src/modules/graphics/Graphics.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/graphics/Graphics.h b/src/modules/graphics/Graphics.h index a3b107337..c48d3acb2 100644 --- a/src/modules/graphics/Graphics.h +++ b/src/modules/graphics/Graphics.h @@ -235,8 +235,10 @@ public: Texture *texture = nullptr; StreamDrawRequest() - : formats{vertex::CommonFormat::NONE, vertex::CommonFormat::NONE} - {} + { + // VS2013 can't initialize arrays in the above manner... + formats[1] = formats[0] = vertex::CommonFormat::NONE; + } }; struct StreamVertexData