From: "Marc-André Lureau" <marcandre.lureau@redhat.com>
To: Antonio Caggiano <quic_acaggian@quicinc.com>
Cc: qemu-devel@nongnu.org, Gerd Hoffmann <kraxel@redhat.com>,
Akihiko Odaki <akihiko.odaki@gmail.com>
Subject: Re: [PATCH] ui/sdl2: Support multiple OpenGL-enabled windows
Date: Wed, 7 Jun 2023 14:29:02 +0400 [thread overview]
Message-ID: <CAMxuvaw88g9RPp_Om2Z9dJSmsrFMZ9ieKx8uJmSNgfsOYyQvSQ@mail.gmail.com> (raw)
In-Reply-To: <20230607091244.55270-1-quic_acaggian@quicinc.com>
[-- Attachment #1: Type: text/plain, Size: 1171 bytes --]
Hi Antonio
On Wed, Jun 7, 2023 at 1:13 PM Antonio Caggiano <quic_acaggian@quicinc.com>
wrote:
> 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);
>
This was introduced in commit c821a58ee7003c2a0567dddaee33c2a5ae71c404 by
Akihiko.
Why should the window visibility behaviour be different whether it uses
opengl or not ?
If you are fixing a GL/shader crash, maybe it needs to be done differently.
thanks
[-- Attachment #2: Type: text/html, Size: 1942 bytes --]
next prev parent reply other threads:[~2023-06-07 10:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-07 9:12 [PATCH] ui/sdl2: Support multiple OpenGL-enabled windows Antonio Caggiano
2023-06-07 10:29 ` Marc-André Lureau [this message]
2023-06-07 11:24 ` Akihiko Odaki
2023-06-08 12:59 ` Antonio Caggiano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMxuvaw88g9RPp_Om2Z9dJSmsrFMZ9ieKx8uJmSNgfsOYyQvSQ@mail.gmail.com \
--to=marcandre.lureau@redhat.com \
--cc=akihiko.odaki@gmail.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quic_acaggian@quicinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).