mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 02:20:11 +01:00
glx: Compile dri2.c only if GLX_DIRECT_RENDERING is defined.
This commit is contained in:
parent
c1033299e8
commit
cf02484fb6
1 changed files with 4 additions and 0 deletions
|
|
@ -31,6 +31,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef GLX_DIRECT_RENDERING
|
||||||
|
|
||||||
#define NEED_REPLIES
|
#define NEED_REPLIES
|
||||||
#include <X11/Xlibint.h>
|
#include <X11/Xlibint.h>
|
||||||
#include <X11/extensions/Xext.h>
|
#include <X11/extensions/Xext.h>
|
||||||
|
|
@ -377,3 +379,5 @@ DRI2CopyRegion(Display * dpy, XID drawable, XserverRegion region,
|
||||||
UnlockDisplay(dpy);
|
UnlockDisplay(dpy);
|
||||||
SyncHandle();
|
SyncHandle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* GLX_DIRECT_RENDERING */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue