From d1e4117355f1db6ff87c837df6212bf6168e98a0 Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Thu, 24 Feb 2011 12:59:41 +0100 Subject: st/egl: Move the copy context to the native display structure This makes it usable also for native helpers. Also add inline functions to access the context and to uninit the native display structure. Signed-off-by: Thomas Hellstrom --- src/gallium/state_trackers/egl/wayland/native_wayland.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gallium/state_trackers/egl/wayland') diff --git a/src/gallium/state_trackers/egl/wayland/native_wayland.c b/src/gallium/state_trackers/egl/wayland/native_wayland.c index d4d5f9c2eb..b10fc54adb 100644 --- a/src/gallium/state_trackers/egl/wayland/native_wayland.c +++ b/src/gallium/state_trackers/egl/wayland/native_wayland.c @@ -137,8 +137,7 @@ wayland_display_destroy(struct native_display *ndpy) if (display->config) FREE(display->config); - if (display->base.screen) - display->base.screen->destroy(display->base.screen); + ndpy_uninit(ndpy); FREE(display); } -- cgit v1.2.3