[mutter] renderer/native: Set EGLContext when creating secondary GPU data
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] renderer/native: Set EGLContext when creating secondary GPU data
- Date: Fri, 26 Nov 2021 15:39:20 +0000 (UTC)
commit 5ca43e7017779e7e1eaa9354a3cf9dd29f6cc1c5
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Fri Nov 26 09:54:17 2021 +0100
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2111>
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 fafc0cc6de..1b118ce062 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]