From: Vinson Lee Date: Tue, 22 Dec 2009 22:51:12 +0000 (-0800) Subject: glx: Compile dri2.c only if GLX_DIRECT_RENDERING is defined. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cf02484fb668ca20afb8e426b44dc01397d83f87;p=mesa.git glx: Compile dri2.c only if GLX_DIRECT_RENDERING is defined. --- diff --git a/src/glx/x11/dri2.c b/src/glx/x11/dri2.c index e144ed3e1f9..dad04470a00 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 #include @@ -377,3 +379,5 @@ DRI2CopyRegion(Display * dpy, XID drawable, XserverRegion region, UnlockDisplay(dpy); SyncHandle(); } + +#endif /* GLX_DIRECT_RENDERING */