Mesa (mesa_7_6_branch): glx: Compile dri2. c only if GLX_DIRECT_RENDERING is defined.
Vinson Lee
vlee at kemper.freedesktop.org
Tue Dec 22 22:53:01 UTC 2009
Module: Mesa
Branch: mesa_7_6_branch
Commit: cf02484fb668ca20afb8e426b44dc01397d83f87
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cf02484fb668ca20afb8e426b44dc01397d83f87
Author: Vinson Lee <vlee at vmware.com>
Date: Tue Dec 22 14:51:12 2009 -0800
glx: Compile dri2.c only if GLX_DIRECT_RENDERING is defined.
---
src/glx/x11/dri2.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/glx/x11/dri2.c b/src/glx/x11/dri2.c
index e144ed3..dad0447 100644
--- a/src/glx/x11/dri2.c
+++ b/src/glx/x11/dri2.c
@@ -31,6 +31,8 @@
*/
+#ifdef GLX_DIRECT_RENDERING
+
#define NEED_REPLIES
#include <X11/Xlibint.h>
#include <X11/extensions/Xext.h>
@@ -377,3 +379,5 @@ DRI2CopyRegion(Display * dpy, XID drawable, XserverRegion region,
UnlockDisplay(dpy);
SyncHandle();
}
+
+#endif /* GLX_DIRECT_RENDERING */
More information about the mesa-commit
mailing list