Browse Source

MSVC 2013 compatibility: need to explicitly specify POD constructor.

I think this is the only place where it fails and it works flawlessly in
other cases. Again, why?!
Vladimír Vondruš 13 years ago
parent
commit
2c711a1bb6
  1. 3
      src/Text/Renderer.cpp

3
src/Text/Renderer.cpp

@ -55,6 +55,9 @@ template<class T> void createIndices(void* output, const UnsignedInt glyphCount)
}
struct Vertex {
#ifdef CORRADE_MSVC2013_COMPATIBILITY
Vertex(const Vector2& position, const Vector2& textureCoordinates): position(position), textureCoordinates(textureCoordinates) {}
#endif
Vector2 position, textureCoordinates;
};

Loading…
Cancel
Save