[mutter] renderer/native: Destory EGL context on GPU data tear down
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] renderer/native: Destory EGL context on GPU data tear down
- Date: Wed, 5 May 2021 20:26:20 +0000 (UTC)
commit d077baadbb4489cdb82beef0327bff67ebde1c67
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Tue Apr 13 15:46:05 2021 +0200
renderer/native: Destory EGL context on GPU data tear down
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1822>
src/backends/native/meta-renderer-native.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c
index 9898b9f646..f12e2dda74 100644
--- a/src/backends/native/meta-renderer-native.c
+++ b/src/backends/native/meta-renderer-native.c
@@ -115,6 +115,14 @@ meta_renderer_native_gpu_data_free (MetaRendererNativeGpuData *renderer_gpu_data
MetaRendererNative *renderer_native = renderer_gpu_data->renderer_native;
MetaEgl *egl = meta_renderer_native_get_egl (renderer_native);
+ if (renderer_gpu_data->secondary.egl_context != EGL_NO_CONTEXT)
+ {
+ meta_egl_destroy_context (egl,
+ renderer_gpu_data->egl_display,
+ renderer_gpu_data->secondary.egl_context,
+ NULL);
+ }
+
if (renderer_gpu_data->egl_display != EGL_NO_DISPLAY)
meta_egl_terminate (egl, renderer_gpu_data->egl_display, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]