mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
renderer/native: Destory EGL context on GPU data tear down
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1822>
This commit is contained in:
parent
63d969537f
commit
d077baadbb
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user