[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] ui/sdl2: Support multiple OpenGL-enabled windows
From: |
Antonio Caggiano |
Subject: |
[PATCH] ui/sdl2: Support multiple OpenGL-enabled windows |
Date: |
Wed, 7 Jun 2023 11:12:44 +0200 |
Multiple graphics devices can be defined with an associated OpenGL
enabled SDL console, hence make sure to not destroy their shaders and
windows.
Signed-off-by: Antonio Caggiano <quic_acaggian@quicinc.com>
---
ui/sdl2-gl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/sdl2-gl.c b/ui/sdl2-gl.c
index bbfa70eac3..795fb1afc9 100644
--- a/ui/sdl2-gl.c
+++ b/ui/sdl2-gl.c
@@ -89,7 +89,7 @@ void sdl2_gl_switch(DisplayChangeListener *dcl,
scon->surface = new_surface;
- if (is_placeholder(new_surface) && qemu_console_get_index(dcl->con)) {
+ if (is_placeholder(new_surface) && !scon->opengl) {
qemu_gl_fini_shader(scon->gls);
scon->gls = NULL;
sdl2_window_destroy(scon);
--
2.40.0
- [PATCH] ui/sdl2: Support multiple OpenGL-enabled windows,
Antonio Caggiano <=