egl: rename LIBGL_ALWAYS_SOFTWARE variable from UseFallback to ForceSoftware

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
Eric Engestrom
2017-12-20 15:53:09 +00:00
committed by Emil Velikov
parent 2f421651ac
commit 81cea66ff1
7 changed files with 8 additions and 8 deletions

View File

@@ -160,7 +160,7 @@ struct _egl_display
/* options that affect how the driver initializes the display */
struct {
EGLBoolean UseFallback; /**< Use fallback driver (sw or less features) */
EGLBoolean ForceSoftware; /**< Use software path only */
void *Platform; /**< Platform-specific options */
} Options;

View File

@@ -84,12 +84,12 @@ _eglMatchDriver(_EGLDisplay *dpy)
assert(!dpy->Initialized);
/* set options */
dpy->Options.UseFallback =
dpy->Options.ForceSoftware =
env_var_as_boolean("LIBGL_ALWAYS_SOFTWARE", false);
best_drv = _eglMatchAndInitialize(dpy);
if (!best_drv) {
dpy->Options.UseFallback = EGL_TRUE;
dpy->Options.ForceSoftware = EGL_TRUE;
best_drv = _eglMatchAndInitialize(dpy);
}