summaryrefslogtreecommitdiff
path: root/lib/mesa/src/glx/dri2.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2017-08-14 09:45:54 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2017-08-14 09:45:54 +0000
commit4c58069f5013f0a621503525f7d5193bfe9976b3 (patch)
treebd8f8a08b889e9a8b99c9de01ae12459d527ea6d /lib/mesa/src/glx/dri2.c
parent5caa025e6b62d0456faad86c89f239a14d1eaadb (diff)
Import Mesa 17.1.6
Diffstat (limited to 'lib/mesa/src/glx/dri2.c')
-rw-r--r--lib/mesa/src/glx/dri2.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/mesa/src/glx/dri2.c b/lib/mesa/src/glx/dri2.c
index 9ebd00ac8..f00b96525 100644
--- a/lib/mesa/src/glx/dri2.c
+++ b/lib/mesa/src/glx/dri2.c
@@ -94,7 +94,6 @@ DRI2WireToEvent(Display *dpy, XEvent *event, xEvent *wire)
switch ((wire->u.u.type & 0x7f) - info->codes->first_event) {
-#ifdef X_DRI2SwapBuffers
case DRI2_BufferSwapComplete:
{
GLXBufferSwapComplete *aevent = (GLXBufferSwapComplete *)event;
@@ -143,8 +142,6 @@ DRI2WireToEvent(Display *dpy, XEvent *event, xEvent *wire)
return True;
}
-#endif
-#ifdef DRI2_InvalidateBuffers
case DRI2_InvalidateBuffers:
{
xDRI2InvalidateBuffers *awire = (xDRI2InvalidateBuffers *)wire;
@@ -152,7 +149,6 @@ DRI2WireToEvent(Display *dpy, XEvent *event, xEvent *wire)
dri2InvalidateBuffers(dpy, awire->drawable);
return False;
}
-#endif
default:
/* client doesn't support server event */
break;
@@ -285,7 +281,6 @@ DRI2Connect(Display * dpy, XID window, char **driverName, char **deviceName)
req->window = window;
req->driverType = DRI2DriverDRI;
-#ifdef DRI2DriverPrimeShift
{
char *prime = getenv("DRI_PRIME");
if (prime) {
@@ -297,7 +292,6 @@ DRI2Connect(Display * dpy, XID window, char **driverName, char **deviceName)
((primeid & DRI2DriverPrimeMask) << DRI2DriverPrimeShift);
}
}
-#endif
if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) {
UnlockDisplay(dpy);