summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2017-12-20 15:53:10 +0000
committerEmil Velikov <[email protected]>2017-12-27 22:31:56 +0000
commite5a7ef0013cfd0d9514a04d2be1186b7d41532b7 (patch)
tree9ff47dc569f353244a2559e4ce163077b27bd6e0
parent81cea66ff1c4d7c2c5167715ff9968754a58bfd1 (diff)
egl: don't try the software path twice
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reported-by: Brendan King <[email protected]>
-rw-r--r--src/egl/main/egldriver.c2
1 files changed, 1 insertions, 1 deletions
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);
}