Browse Source

Is MSVC happy with this?

--HG--
branch : minor
Alex Szpakowski 8 years ago
parent
commit
3c1d4304b1
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/modules/graphics/Graphics.h

+ 5 - 1
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