glx: Compile dri2.c only if GLX_DIRECT_RENDERING is defined.
authorVinson Lee <vlee@vmware.com>
Tue, 22 Dec 2009 22:51:12 +0000 (14:51 -0800)
committerVinson Lee <vlee@vmware.com>
Tue, 22 Dec 2009 22:51:12 +0000 (14:51 -0800)
src/glx/x11/dri2.c

index e144ed3e1f91aaa4df601cf5f115fd3624dd335f..dad04470a00a52321707490efea5df91792f5831 100644 (file)
@@ -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 */