diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c index 9898b9f64..f12e2dda7 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);