diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-08-09 14:47:26 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-09-07 12:33:11 -0400 |
commit | ae9487c29984addc96a6d617292370fbc3f8ff9a (patch) | |
tree | 3efedb7017659b4671055b8f26cdb8bdf380313a /src/glx/glx_pbuffer.c | |
parent | 6561a64a69c0f5005d03ea297f9a309f48449731 (diff) | |
download | external_mesa3d-ae9487c29984addc96a6d617292370fbc3f8ff9a.zip external_mesa3d-ae9487c29984addc96a6d617292370fbc3f8ff9a.tar.gz external_mesa3d-ae9487c29984addc96a6d617292370fbc3f8ff9a.tar.bz2 |
Some fixes for GLX_INDIRECT_RENDERING only build
This fixes some of the build issues with GLX_INDIRECT_RENDERING but !GLX_DIRECT_RENDERING due to recent changes.
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Diffstat (limited to 'src/glx/glx_pbuffer.c')
-rw-r--r-- | src/glx/glx_pbuffer.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/glx/glx_pbuffer.c b/src/glx/glx_pbuffer.c index 15bfb15..d065f4b 100644 --- a/src/glx/glx_pbuffer.c +++ b/src/glx/glx_pbuffer.c @@ -86,7 +86,9 @@ ChangeDrawableAttribute(Display * dpy, GLXDrawable drawable, const CARD32 * attribs, size_t num_attribs) { struct glx_display *priv = __glXInitialize(dpy); +#ifdef GLX_DIRECT_RENDERING __GLXDRIdrawable *pdraw; +#endif CARD32 *output; CARD8 opcode; int i; @@ -95,8 +97,6 @@ ChangeDrawableAttribute(Display * dpy, GLXDrawable drawable, return; } - pdraw = GetGLXDRIDrawable(dpy, drawable); - opcode = __glXSetupForCommand(dpy); if (!opcode) return; @@ -133,6 +133,9 @@ ChangeDrawableAttribute(Display * dpy, GLXDrawable drawable, UnlockDisplay(dpy); SyncHandle(); +#ifdef GLX_DIRECT_RENDERING + pdraw = GetGLXDRIDrawable(dpy, drawable); + for (i = 0; i < num_attribs; i++) { switch(attribs[i * 2]) { case GLX_EVENT_MASK: @@ -141,6 +144,7 @@ ChangeDrawableAttribute(Display * dpy, GLXDrawable drawable, break; } } +#endif return; } |