summaryrefslogtreecommitdiffstats
path: root/src/glx/dri2.c
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-02-09 13:35:48 +0000
committerEmil Velikov <[email protected]>2017-02-13 10:13:46 +0000
commitbfac8d1749501b095e651d70415d46a27ad784ad (patch)
treec4c7d7a485a375b8f8b726e524cb4cddff262be8 /src/glx/dri2.c
parenta1662d0dabe0a0ed00375c2ab2a2771e178cfbaa (diff)
glx: remove DRI2DriverPrimeShift compile guards
DRI2DriverPrimeShift was added in dri2proto-2.8, which we now require as of the previous commit. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glx/dri2.c')
-rw-r--r--src/glx/dri2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/glx/dri2.c b/src/glx/dri2.c
index f7e613388a6..f00b96525aa 100644
--- a/src/glx/dri2.c
+++ b/src/glx/dri2.c
@@ -281,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) {
@@ -293,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);