From cedb7e7123df3511eb77f8946abfda6850a19861 Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Sat, 28 Mar 2015 16:56:51 +0100 Subject: [PATCH] Fix glVertexAttribDivisor redefinition warning --- src/graphics/gl_headers.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/graphics/gl_headers.hpp b/src/graphics/gl_headers.hpp index 2542fa7a6..0e18a316d 100644 --- a/src/graphics/gl_headers.hpp +++ b/src/graphics/gl_headers.hpp @@ -13,6 +13,9 @@ extern "C" { # include # define OGL32CTX # ifdef GL_ARB_instanced_arrays +# ifdef glVertexAttribDivisor +# undef glVertexAttribDivisor +# endif # define glVertexAttribDivisor glVertexAttribDivisorARB # endif # ifndef GL_TEXTURE_SWIZZLE_RGBA