mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
onscreen/native: Get backend pointer from GPU
If we clean things up during destruction, the singleton pointer to the backend is already gone; get it from a better place instead, to not crash. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1822>
This commit is contained in:
parent
d077baadbb
commit
023dd13d6c
@ -549,7 +549,8 @@ secondary_gpu_release_dumb (MetaOnscreenNativeSecondaryGpuState *secondary_gpu_s
|
||||
static void
|
||||
secondary_gpu_state_free (MetaOnscreenNativeSecondaryGpuState *secondary_gpu_state)
|
||||
{
|
||||
MetaBackend *backend = meta_get_backend ();
|
||||
MetaGpu *gpu = META_GPU (secondary_gpu_state->gpu_kms);
|
||||
MetaBackend *backend = meta_gpu_get_backend (gpu);
|
||||
MetaEgl *egl = meta_backend_get_egl (backend);
|
||||
|
||||
if (secondary_gpu_state->egl_surface != EGL_NO_SURFACE)
|
||||
|
Loading…
Reference in New Issue
Block a user