From e5a7ef0013cfd0d9514a04d2be1186b7d41532b7 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 20 Dec 2017 15:53:10 +0000 Subject: [PATCH] egl: don't try the software path twice Signed-off-by: Eric Engestrom Reviewed-by: Emil Velikov Reported-by: Brendan King --- src/egl/main/egldriver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c index ee3dc86e388..218b3daef25 100644 --- a/src/egl/main/egldriver.c +++ b/src/egl/main/egldriver.c @@ -88,7 +88,7 @@ _eglMatchDriver(_EGLDisplay *dpy) env_var_as_boolean("LIBGL_ALWAYS_SOFTWARE", false); best_drv = _eglMatchAndInitialize(dpy); - if (!best_drv) { + if (!best_drv && !dpy->Options.ForceSoftware) { dpy->Options.ForceSoftware = EGL_TRUE; best_drv = _eglMatchAndInitialize(dpy); } -- 2.30.2