Explorar o código

Fix compilation in VS2013.

--HG--
branch : minor
Alex Szpakowski %!s(int64=8) %!d(string=hai) anos
pai
achega
70df473680
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      src/modules/graphics/Graphics.h

+ 4 - 2
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