Ticket #20638: xorg-tiger-ppc.patch

File xorg-tiger-ppc.patch, 2.1 KB (added by jeremyhu (Jeremy Huddleston Sequoia), 15 years ago)

updated xorg-tiger-ppc.patch

  • hw/xquartz/GL/indirect.c

    diff --git a/hw/xquartz/GL/indirect.c b/hw/xquartz/GL/indirect.c
    index f080067..f9d69f7 100644
    a b  
    4444#include <OpenGL/OpenGL.h>
    4545#include <OpenGL/CGLContext.h>
    4646
     47/* These next few GL_EXT pre-processing blocks are to explicitly define
     48 * these symbols to 0 if they are not set by OpenGL.framework.  This
     49 * prevents the X11 glext.h from setting them to 1.
     50 */
     51
     52#ifndef GL_EXT_fragment_shader
     53#define GL_EXT_fragment_shader 0
     54#endif
     55
     56#ifndef GL_EXT_blend_equation_separate
     57#define GL_EXT_blend_equation_separate 0
     58#endif
     59
     60#ifndef GL_EXT_blend_func_separate
     61#define GL_EXT_blend_func_separate 0
     62#endif
     63
     64#ifndef GL_EXT_depth_bounds_test
     65#define GL_EXT_depth_bounds_test 0
     66#endif
     67
     68#ifndef GL_EXT_compiled_vertex_array
     69#define GL_EXT_compiled_vertex_array 0
     70#endif
     71
     72#ifndef GL_EXT_cull_vertex
     73#define GL_EXT_cull_vertex 0
     74#endif
     75
     76#ifndef GL_EXT_fog_coord
     77#define GL_EXT_fog_coord 0
     78#endif
     79
     80#ifndef GL_EXT_framebuffer_blit
     81#define GL_EXT_framebuffer_blit 0
     82#endif
     83
     84#ifndef GL_EXT_framebuffer_object
     85#define GL_EXT_framebuffer_object 0
     86#endif
     87
     88#ifndef GL_EXT_gpu_program_parameters
     89#define GL_EXT_gpu_program_parameters 0
     90#endif
     91
     92#ifndef GL_EXT_multi_draw_arrays
     93#define GL_EXT_multi_draw_arrays 0
     94#endif
     95
     96#ifndef GL_EXT_point_parameters
     97#define GL_EXT_point_parameters 0
     98#endif
     99
     100#ifndef GL_EXT_polygon_offset
     101#define GL_EXT_polygon_offset 0
     102#endif
     103
     104#ifndef GL_EXT_secondary_color
     105#define GL_EXT_secondary_color 0
     106#endif
     107
     108#ifndef GL_EXT_stencil_two_side
     109#define GL_EXT_stencil_two_side 0
     110#endif
     111
     112#ifndef GL_EXT_timer_query
     113#define GL_EXT_timer_query 0
     114#endif
     115
     116#ifndef GL_EXT_vertex_array
     117#define GL_EXT_vertex_array 0
     118#endif
     119
     120/* Tiger PPC doesn't have the associated symbols, but glext.h says it does.  Liars!
     121 * http://trac.macports.org/ticket/20638
     122 */
     123#if defined(__ppc__) && MAC_OS_X_VERSION_MIN_REQUIRED == 1040
     124#undef GL_EXT_gpu_program_parameters
     125#define GL_EXT_gpu_program_parameters 0
     126#endif
     127
    47128#include <GL/glxproto.h>
    48129#include <windowstr.h>
    49130#include <resource.h>