Browse Source

Fix compilation in VS2013.

--HG--
branch : minor
Alex Szpakowski 8 years ago
parent
commit
70df473680
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/modules/graphics/Graphics.h

+ 4 - 2
src/modules/graphics/Graphics.h

@@ -235,8 +235,10 @@ public:
 		Texture *texture = nullptr;
 		Texture *texture = nullptr;
 
 
 		StreamDrawRequest()
 		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
 	struct StreamVertexData