XQuartz: GL: Explicitly set GL_EXT symbols to 0 if they are not in OpenGL.framework to prevent X11's glext.h from setting them to 1.

This commit is contained in:
Jeremy Huddleston 2009-08-27 11:04:00 -07:00
parent f134395a82
commit 7fe37137d8

View File

@ -44,6 +44,79 @@
#include <OpenGL/OpenGL.h>
#include <OpenGL/CGLContext.h>
/* These next few GL_EXT pre-processing blocks are to explicitly define
* these symbols to 0 if they are not set by OpenGL.framework. This
* prevents the X11 glext.h from setting them to 1.
*/
#ifndef GL_EXT_fragment_shader
#define GL_EXT_fragment_shader 0
#endif
#ifndef GL_EXT_blend_equation_separate
#define GL_EXT_blend_equation_separate 0
#endif
#ifndef GL_EXT_blend_func_separate
#define GL_EXT_blend_func_separate 0
#endif
#ifndef GL_EXT_depth_bounds_test
#define GL_EXT_depth_bounds_test 0
#endif
#ifndef GL_EXT_compiled_vertex_array
#define GL_EXT_compiled_vertex_array 0
#endif
#ifndef GL_EXT_cull_vertex
#define GL_EXT_cull_vertex 0
#endif
#ifndef GL_EXT_fog_coord
#define GL_EXT_fog_coord 0
#endif
#ifndef GL_EXT_framebuffer_blit
#define GL_EXT_framebuffer_blit 0
#endif
#ifndef GL_EXT_framebuffer_object
#define GL_EXT_framebuffer_object 0
#endif
#ifndef GL_EXT_gpu_program_parameters
#define GL_EXT_gpu_program_parameters 0
#endif
#ifndef GL_EXT_multi_draw_arrays
#define GL_EXT_multi_draw_arrays 0
#endif
#ifndef GL_EXT_point_parameters
#define GL_EXT_point_parameters 0
#endif
#ifndef GL_EXT_polygon_offset
#define GL_EXT_polygon_offset 0
#endif
#ifndef GL_EXT_secondary_color
#define GL_EXT_secondary_color 0
#endif
#ifndef GL_EXT_stencil_two_side
#define GL_EXT_stencil_two_side 0
#endif
#ifndef GL_EXT_timer_query
#define GL_EXT_timer_query 0
#endif
#ifndef GL_EXT_vertex_array
#define GL_EXT_vertex_array 0
#endif
#include <GL/glxproto.h>
#include <windowstr.h>
#include <resource.h>