diff options
author | Vinson Lee <vlee@vmware.com> | 2009-12-22 14:51:12 -0800 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2009-12-22 14:51:12 -0800 |
commit | cf02484fb668ca20afb8e426b44dc01397d83f87 (patch) | |
tree | 7f79eb8a9c4a0e01ceba22d7f1f0d38311bfffd7 /src/glx/x11 | |
parent | c1033299e836e6a52bcd7211edb263900576e6af (diff) |
glx: Compile dri2.c only if GLX_DIRECT_RENDERING is defined.
Diffstat (limited to 'src/glx/x11')
-rw-r--r-- | 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 e144ed3e1f..dad04470a0 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 */ |