diff options
author | Eric Engestrom <[email protected]> | 2017-10-18 16:31:23 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2017-10-18 17:25:41 +0100 |
commit | d7e769abec732fd23b93145a519065c82b2ccb2b (patch) | |
tree | d6d7a56b93e2943af2c1a9fb455505a93128fb96 /src/egl/main/egldriver.c | |
parent | 3012885b3fa78ad767c3f3f7299be85b4505b9d9 (diff) |
egl: drop always-false TestOnly option
Signed-off-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/egl/main/egldriver.c')
-rw-r--r-- | src/egl/main/egldriver.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c index 92ea6450944..003f74ed63d 100644 --- a/src/egl/main/egldriver.c +++ b/src/egl/main/egldriver.c @@ -75,19 +75,17 @@ _eglMatchAndInitialize(_EGLDisplay *dpy) } /** - * Match a display to a driver. The display is initialized unless test_only is - * true. The matching is done by finding the first driver that can initialize - * the display. + * Match a display to a driver. The matching is done by finding the first + * driver that can initialize the display. */ _EGLDriver * -_eglMatchDriver(_EGLDisplay *dpy, EGLBoolean test_only) +_eglMatchDriver(_EGLDisplay *dpy) { _EGLDriver *best_drv; assert(!dpy->Initialized); /* set options */ - dpy->Options.TestOnly = test_only; dpy->Options.UseFallback = EGL_FALSE; best_drv = _eglMatchAndInitialize(dpy); @@ -97,12 +95,10 @@ _eglMatchDriver(_EGLDisplay *dpy, EGLBoolean test_only) } if (best_drv) { - _eglLog(_EGL_DEBUG, "the best driver is %s%s", - best_drv->Name, (test_only) ? " (test only) " : ""); - if (!test_only) { - dpy->Driver = best_drv; - dpy->Initialized = EGL_TRUE; - } + _eglLog(_EGL_DEBUG, "the best driver is %s", + best_drv->Name); + dpy->Driver = best_drv; + dpy->Initialized = EGL_TRUE; } return best_drv; |