From 5ca43e7017779e7e1eaa9354a3cf9dd29f6cc1c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 26 Nov 2021 09:54:17 +0100 Subject: [PATCH] renderer/native: Set EGLContext when creating secondary GPU data When changing to using MetaRenderDevice, setting the EGLContext was mistakenly dropped. Add it back. Fixes hybrid graphics setups. Fixes: d4e8cfa17a3a69965b9bd130ded46cf54a438908 Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2032 Part-of: --- src/backends/native/meta-renderer-native.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c index fafc0cc6d..1b118ce06 100644 --- a/src/backends/native/meta-renderer-native.c +++ b/src/backends/native/meta-renderer-native.c @@ -1520,6 +1520,7 @@ init_secondary_gpu_data_gpu (MetaRendererNativeGpuData *renderer_gpu_data, goto err_fail_make_current; } + renderer_gpu_data->secondary.egl_context = egl_context; renderer_gpu_data->secondary.egl_config = egl_config; renderer_gpu_data->secondary.copy_mode = META_SHARED_FRAMEBUFFER_COPY_MODE_SECONDARY_GPU;