Просмотр исходного кода

Fix compilation issue in MSVC2012.

rude 12 лет назад
Родитель
Сommit
697f4de80a
1 измененных файлов с 5 добавлено и 0 удалено
  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