Hello,

Here is a missing bit: dri2.c's content should only be compiled when
building direct rendering.

Samuel
diff --git a/src/glx/x11/dri2.c b/src/glx/x11/dri2.c
index f967432..ec5a791 100644
--- a/src/glx/x11/dri2.c
+++ b/src/glx/x11/dri2.c
@@ -30,6 +30,7 @@
  *   Kristian Høgsberg ([email protected])
  */
 
+#ifdef GLX_DIRECT_RENDERING
 
 #define NEED_REPLIES
 #include <X11/Xlibint.h>
@@ -299,3 +300,4 @@ void DRI2CopyRegion(Display *dpy, XID drawable, 
XserverRegion region,
     UnlockDisplay(dpy);
     SyncHandle();
 }
+#endif
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to