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>
dri2_terminate(const _EGLDriver *drv, _EGLDisplay *disp)
{
/* Release all non-current Context/Surfaces. */
- _eglReleaseDisplayResources(drv, disp);
+ _eglReleaseDisplayResources(disp);
dri2_display_release(disp);
* 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) {
extern void
-_eglReleaseDisplayResources(const _EGLDriver *drv, _EGLDisplay *disp);
+_eglReleaseDisplayResources(_EGLDisplay *disp);
extern void