diff options
author | Jeremy Huddleston <[email protected]> | 2011-06-08 12:03:10 -0700 |
---|---|---|
committer | Jeremy Huddleston <[email protected]> | 2011-06-08 12:03:10 -0700 |
commit | 3b23cf43a4ac308df8875025fed333383b520105 (patch) | |
tree | 81745ee5bbc382cc4223c6190c66a3875082c849 /src | |
parent | 1b90d7d36bba4ca24099cd4c0d1cc3d8ac7ae415 (diff) |
glx: Remove some GLX_USE_APPLEGL guards around glapi
Now that we're using glapi, we don't need some GLX_USE_APPLEGL ifdef-foo
Signed-off-by: Jeremy Huddleston <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/glx/glxcurrent.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/glx/glxcurrent.c b/src/glx/glxcurrent.c index b3009580d13..064fd71ae6e 100644 --- a/src/glx/glxcurrent.c +++ b/src/glx/glxcurrent.c @@ -43,10 +43,10 @@ #include "apple_glx.h" #include "apple_glx_context.h" -#else -#include "glapi.h" #endif +#include "glapi.h" + /* ** We setup some dummy structures here so that the API can be used ** even if no context is current. @@ -160,7 +160,7 @@ _X_HIDDEN void __glXSetCurrentContextNull(void) { __glXSetCurrentContext(&dummyContext); -#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL) +#if defined(GLX_DIRECT_RENDERING) _glapi_set_dispatch(NULL); /* no-op functions */ _glapi_set_context(NULL); #endif @@ -214,7 +214,6 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw, struct glx_context *oldGC = __glXGetCurrentContext(); int ret = Success; -#ifndef GLX_USE_APPLEGL /* XXX: If this is left out, then libGL ends up not having this * symbol, and drivers using it fail to load. Compare the * implementation of this symbol to _glapi_noop_enable_warnings(), @@ -224,7 +223,6 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw, * library, though. */ (void)_glthread_GetID(); -#endif /* Make sure that the new context has a nonzero ID. In the request, * a zero context ID is used only to mean that we bind to no current @@ -244,9 +242,7 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw, return False; } -#ifndef GLX_USE_APPLEGL _glapi_check_multithread(); -#endif __glXLock(); if (oldGC == gc && |