[PATCH weston 6/8] gl-renderer: use weston_platform_destroy_egl_surface wrapper
Emil Velikov
emil.l.velikov at gmail.com
Mon Nov 14 17:08:17 UTC 2016
From: Emil Velikov <emil.velikov at collabora.com>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
libweston/gl-renderer.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/libweston/gl-renderer.c b/libweston/gl-renderer.c
index 09256b4..099d099 100644
--- a/libweston/gl-renderer.c
+++ b/libweston/gl-renderer.c
@@ -2726,7 +2726,7 @@ gl_renderer_output_window_create(struct weston_output *output,
ret = gl_renderer_output_create(output, egl_surface);
if (ret < 0)
- eglDestroySurface(gr->egl_display, egl_surface);
+ weston_platform_destroy_egl_surface(gr->egl_display, egl_surface);
return ret;
}
@@ -2741,7 +2741,7 @@ gl_renderer_output_destroy(struct weston_output *output)
for (i = 0; i < 2; i++)
pixman_region32_fini(&go->buffer_damage[i]);
- eglDestroySurface(gr->egl_display, go->egl_surface);
+ weston_platform_destroy_egl_surface(gr->egl_display, go->egl_surface);
free(go);
}
@@ -2773,7 +2773,8 @@ gl_renderer_destroy(struct weston_compositor *ec)
dmabuf_image_destroy(image);
if (gr->dummy_surface != EGL_NO_SURFACE)
- eglDestroySurface(gr->egl_display, gr->dummy_surface);
+ weston_platform_destroy_egl_surface(gr->egl_display,
+ gr->dummy_surface);
eglTerminate(gr->egl_display);
eglReleaseThread();
@@ -3122,7 +3123,8 @@ gl_renderer_display_create(struct weston_compositor *ec, EGLenum platform,
if (gl_renderer_setup(ec, gr->dummy_surface) < 0) {
if (gr->dummy_surface != EGL_NO_SURFACE)
- eglDestroySurface(gr->egl_display, gr->dummy_surface);
+ weston_platform_destroy_egl_surface(gr->egl_display,
+ gr->dummy_surface);
goto fail_with_error;
}
--
2.9.3
More information about the wayland-devel
mailing list