egl: replace _EGLDriver param with _EGLDisplay->Driver in _eglReleaseDisplayResources()

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6241>
This commit is contained in:
Eric Engestrom
2018-04-22 16:48:15 +02:00
committed by Marge Bot
parent a76423e481
commit 485f8f89f9
3 changed files with 4 additions and 3 deletions

View File

@@ -1314,7 +1314,7 @@ static EGLBoolean
dri2_terminate(const _EGLDriver *drv, _EGLDisplay *disp)
{
/* Release all non-current Context/Surfaces. */
_eglReleaseDisplayResources(drv, disp);
_eglReleaseDisplayResources(disp);
dri2_display_release(disp);

View File

@@ -293,9 +293,10 @@ out:
* Destroy the contexts and surfaces that are linked to the display.
*/
void
_eglReleaseDisplayResources(const _EGLDriver *drv, _EGLDisplay *display)
_eglReleaseDisplayResources(_EGLDisplay *display)
{
_EGLResource *list;
const _EGLDriver *drv = display->Driver;
list = display->ResourceLists[_EGL_RESOURCE_CONTEXT];
while (list) {

View File

@@ -207,7 +207,7 @@ _eglFindDisplay(_EGLPlatformType plat, void *plat_dpy, const EGLAttrib *attr);
extern void
_eglReleaseDisplayResources(const _EGLDriver *drv, _EGLDisplay *disp);
_eglReleaseDisplayResources(_EGLDisplay *disp);
extern void