[Mesa-dev] [PATCH mesa 3/3] egl: don't try the software path twice
Eric Engestrom
eric.engestrom at imgtec.com
Wed Dec 20 15:53:10 UTC 2017
Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
---
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 c7d5aa18056518c51fc0..b20652ed8c1d0182b5d5 100644
--- a/src/egl/main/egldriver.c
+++ b/src/egl/main/egldriver.c
@@ -93,7 +93,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);
}
--
Cheers,
Eric
More information about the mesa-dev
mailing list