2
0
Эх сурвалжийг харах

Fix compilation in VS2013.

--HG--
branch : minor
Alex Szpakowski 8 жил өмнө
parent
commit
70df473680

+ 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