diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2010-04-01 11:17:04 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2010-04-01 12:33:46 -0700 |
commit | 23215ef4d60a86d9f3b3fdc08e3fdadc59e98890 (patch) | |
tree | 6b2a796ec7e9d229f96c0b4139bc3383b14a1720 /src/glx/glxclient.h | |
parent | 9495e3703062d1ddaf3161f4efc23f0b51284d9b (diff) | |
download | external_mesa3d-23215ef4d60a86d9f3b3fdc08e3fdadc59e98890.zip external_mesa3d-23215ef4d60a86d9f3b3fdc08e3fdadc59e98890.tar.gz external_mesa3d-23215ef4d60a86d9f3b3fdc08e3fdadc59e98890.tar.bz2 |
apple: Change ifdefs for DRI to be DRI && !APPLE
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src/glx/glxclient.h')
-rw-r--r-- | src/glx/glxclient.h | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/src/glx/glxclient.h b/src/glx/glxclient.h index 3519c20..958e152 100644 --- a/src/glx/glxclient.h +++ b/src/glx/glxclient.h @@ -54,9 +54,7 @@ #include "GL/glxint.h" #include "GL/glxproto.h" #include "GL/internal/glcore.h" -#ifndef GLX_USE_APPLEGL #include "glapi/glapitable.h" -#endif #include "glxhash.h" #if defined( PTHREADS ) # include <pthread.h> @@ -99,8 +97,13 @@ typedef struct _glapi_table __GLapi; #define containerOf(ptr, type, member) \ (type *)( (char *)ptr - offsetof(type,member) ) -#include <GL/internal/dri_interface.h> +extern void DRI_glXUseXFont(Font font, int first, int count, int listbase); + +#endif + +#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL) +#include <GL/internal/dri_interface.h> /** * Display dependent methods. This structure is initialized during the @@ -187,8 +190,6 @@ extern __GLXDRIdisplay *dri2CreateDisplay(Display * dpy); extern void dri2InvalidateBuffers(Display *dpy, XID drawable); -extern void DRI_glXUseXFont(Font font, int first, int count, int listbase); - /* ** Functions to obtain driver configuration information from a direct ** rendering client application @@ -199,10 +200,6 @@ extern const char *glXGetDriverConfig(const char *driverName); #endif -#ifdef GLX_USE_APPLEGL -extern void DRI_glXUseXFont( Font font, int first, int count, int listbase ); -#endif - /************************************************************************/ #define __GL_CLIENT_ATTRIB_STACK_DEPTH 16 @@ -411,9 +408,14 @@ struct __GLXcontextRec const __GLcontextModes *mode; #ifdef GLX_DIRECT_RENDERING +#ifdef GLX_USE_APPLEGL + void *driContext; + Bool do_destroy; +#else __GLXDRIcontext *driContext; __DRIcontext *__driContext; #endif +#endif /** * The current read-drawable for this context. Will be None if this @@ -455,11 +457,6 @@ struct __GLXcontextRec unsigned long thread_id; char gl_extension_bits[__GL_EXT_BYTES]; - -#ifdef GLX_USE_APPLEGL - void *apple; - Bool do_destroy; -#endif }; #define __glXSetError(gc,code) \ @@ -514,7 +511,7 @@ struct __GLXscreenConfigsRec */ char *effectiveGLXexts; -#ifdef GLX_DIRECT_RENDERING +#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL) /** * Per screen direct rendering interface functions and data. */ @@ -625,7 +622,7 @@ struct __GLXdisplayPrivateRec */ __GLXscreenConfigs *screenConfigs; -#ifdef GLX_DIRECT_RENDERING +#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL) /** * Per display direct rendering interface functions and data. */ @@ -638,14 +635,12 @@ struct __GLXdisplayPrivateRec extern GLubyte *__glXFlushRenderBuffer(__GLXcontext *, GLubyte *); -#ifndef GLX_USE_APPLEGL extern void __glXSendLargeChunk(__GLXcontext * gc, GLint requestNumber, GLint totalRequests, const GLvoid * data, GLint dataLen); extern void __glXSendLargeCommand(__GLXcontext *, const GLvoid *, GLint, const GLvoid *, GLint); -#endif /* Initialize the GLX extension for dpy */ extern __GLXdisplayPrivate *__glXInitialize(Display *); @@ -805,7 +800,7 @@ extern GLboolean __glXGetMscRateOML(Display * dpy, GLXDrawable drawable, int32_t * numerator, int32_t * denominator); -#ifdef GLX_DIRECT_RENDERING +#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL) GLboolean __driGetMscRateOML(__DRIdrawable * draw, int32_t * numerator, int32_t * denominator, void *private); |