diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index f1535bec1a8..3358feb95c9 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -1559,7 +1559,8 @@ dri2_initialize_x11_swrast(_EGLDisplay *disp) dri2_dpy->driver_name = strdup(disp->Options.Zink ? "zink" : "swrast"); #ifdef HAVE_DRI3 if (disp->Options.Zink && - !debug_get_bool_option("LIBGL_DRI3_DISABLE", false)) + !debug_get_bool_option("LIBGL_DRI3_DISABLE", false) && + !debug_get_bool_option("LIBGL_KOPPER_DRI2", false)) dri3_x11_connect(dri2_dpy); #endif if (!dri2_load_driver_swrast(disp))