Browse Source

Fix compilation issue in MSVC2012.

rude 12 years ago
parent
commit
697f4de80a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/modules/graphics/opengl/VertexBuffer.cpp

+ 5 - 0
src/modules/graphics/opengl/VertexBuffer.cpp

@@ -28,6 +28,11 @@
 #include <algorithm>
 #include <algorithm>
 #include <limits>
 #include <limits>
 
 
+// Conflicts with std::numeric_limits<GLushort>::max() (Windows).
+#ifdef max
+# undef max
+#endif
+
 namespace love
 namespace love
 {
 {
 namespace graphics
 namespace graphics