From 2674b5db5c2ca4df36391e92cf8ae75f5c7ba886 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Fri, 20 Dec 2013 21:43:07 -0800 Subject: [PATCH] Fixed Linux build with GL 3.1 --- src/renderer_gl.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderer_gl.h b/src/renderer_gl.h index 2c35a0b1..cc66a56d 100644 --- a/src/renderer_gl.h +++ b/src/renderer_gl.h @@ -14,7 +14,9 @@ # if BGFX_CONFIG_RENDERER_OPENGL >= 31 # define GLCOREARB_PROTOTYPES # include -# define GL_ARB_shader_objects // OSX collsion with GLhandleARB in gltypes.h +# if BX_PLATFORM_OSX +# define GL_ARB_shader_objects // OSX collsion with GLhandleARB in gltypes.h +# endif // BX_PLATFORM_OSX # else # if BX_PLATFORM_LINUX # define GL_PROTOTYPES