egl: don't try the software path twice
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reported-by: Brendan King <Brendan.King@imgtec.com>
This commit is contained in:

committed by
Emil Velikov

parent
81cea66ff1
commit
e5a7ef0013
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user