diff options
author | Eric Engestrom <[email protected]> | 2019-02-02 11:38:45 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-02-06 11:53:24 +0000 |
commit | 54fa5eceae237598d6fb329ec7cbe1d3a85e7d39 (patch) | |
tree | 870badc295851feaba8cf7e43318ed9542a7c0a7 /src/egl/main/egldriver.c | |
parent | a81d5587d6ad20506c13199a1f4573fdf6350709 (diff) |
egl: use coherent variable names
`EGLDisplay` variables (the opaque Khronos type) have mostly been
consistently called `dpy`, as this is the name used in the Khronos
specs.
However, `_EGLDisplay` variables (our internal struct) have been
randomly called `dpy` when there was no local variable clash with
`EGLDisplay`s, and `disp` otherwise.
Let's be consistent and use `dpy` for the Khronos type, and `disp`
for our struct.
Signed-off-by: Eric Engestrom <[email protected]>
Acked-by: Emil Velikov <[email protected]>
Acked-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/egl/main/egldriver.c')
-rw-r--r-- | src/egl/main/egldriver.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c index b20652ed8c1..e294c8c5f7d 100644 --- a/src/egl/main/egldriver.c +++ b/src/egl/main/egldriver.c @@ -68,10 +68,10 @@ _eglGetDriver(void) } static _EGLDriver * -_eglMatchAndInitialize(_EGLDisplay *dpy) +_eglMatchAndInitialize(_EGLDisplay *disp) { if (_eglGetDriver()) - if (_eglDriver->API.Initialize(_eglDriver, dpy)) + if (_eglDriver->API.Initialize(_eglDriver, disp)) return _eglDriver; return NULL; @@ -82,25 +82,25 @@ _eglMatchAndInitialize(_EGLDisplay *dpy) * driver that can initialize the display. */ _EGLDriver * -_eglMatchDriver(_EGLDisplay *dpy) +_eglMatchDriver(_EGLDisplay *disp) { _EGLDriver *best_drv; - assert(!dpy->Initialized); + assert(!disp->Initialized); /* set options */ - dpy->Options.ForceSoftware = + disp->Options.ForceSoftware = env_var_as_boolean("LIBGL_ALWAYS_SOFTWARE", false); - best_drv = _eglMatchAndInitialize(dpy); - if (!best_drv && !dpy->Options.ForceSoftware) { - dpy->Options.ForceSoftware = EGL_TRUE; - best_drv = _eglMatchAndInitialize(dpy); + best_drv = _eglMatchAndInitialize(disp); + if (!best_drv && !disp->Options.ForceSoftware) { + disp->Options.ForceSoftware = EGL_TRUE; + best_drv = _eglMatchAndInitialize(disp); } if (best_drv) { - dpy->Driver = best_drv; - dpy->Initialized = EGL_TRUE; + disp->Driver = best_drv; + disp->Initialized = EGL_TRUE; } return best_drv; |