Module: Mesa
Branch: mesa_7_6_branch
Commit: cf02484fb668ca20afb8e426b44dc01397d83f87
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=cf02484fb668ca20afb8e426b44dc01397d83f87

Author: Vinson Lee <[email protected]>
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 */

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to