File nvidia-xrandr-remove.patch of Package wine
diff --git a/dlls/winex11.drv/xrandr.c b/dlls/winex11.drv/xrandr.c
index dbd8a721074..4db5ff3bd8b 100644
--- a/dlls/winex11.drv/xrandr.c
+++ b/dlls/winex11.drv/xrandr.c
@@ -369,7 +369,6 @@ static BOOL is_broken_driver(void)
XRRScreenResources *screen_resources;
XRROutputInfo *output_info;
XRRModeInfo *first_mode;
- INT major, event, error;
INT output_idx, i, j;
BOOL only_one_mode;
@@ -420,15 +419,6 @@ static BOOL is_broken_driver(void)
if (!only_one_mode)
continue;
-
- /* Check if it is NVIDIA proprietary driver */
- if (XQueryExtension( gdi_display, "NV-CONTROL", &major, &event, &error ))
- {
- ERR_(winediag)("Broken NVIDIA RandR detected, falling back to RandR 1.0. "
- "Please consider using the Nouveau driver instead.\n");
- pXRRFreeScreenResources( screen_resources );
- return TRUE;
- }
}
pXRRFreeScreenResources( screen_resources );
return FALSE;