Files
qemu/ui
Ryan Zhang c5333ef57b ui/sdl2: Set GL ES profile before creating initial GL context
When the user selects GLES via '-display sdl,gl=es', we need to set
SDL_GL_CONTEXT_PROFILE_MASK to SDL_GL_CONTEXT_PROFILE_ES before
calling SDL_GL_CreateContext(). This ensures SDL_GL_LoadLibrary()
loads the correct GLES driver instead of the desktop OpenGL driver.

Fix the below issue: qemu-system-aarch64: /usr/src/debug/libepoxy
/1.5.10/src/dispatch_common.c:872: epoxy_get_proc_address: Assertion
`0 && "Couldn't find current GLX or EGL context.\n"' failed.

sdl2_gl_create_context() already sets the profile mask correctly for
ES mode, but the initial context created in sdl2_window_create() is
missing the same treatment.

Fixes:da3f7a3ab9ea0091955b58f8909dfcee01f4043e ("ui/sdl: try to instantiate the matching opengl renderer")

Signed-off-by: ryan.zhang@nxp.com
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <DU2PR04MB9018BB3650BA218438C01F2A83042@DU2PR04MB9018.eurprd04.prod.outlook.com>
(cherry picked from commit 490a3e1867)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2026-06-24 16:35:40 +03:00
..
2025-01-09 18:16:24 +01:00
2021-12-21 10:50:22 +04:00
2021-12-21 10:50:22 +04:00
2023-06-27 17:08:56 +02:00
2024-09-10 13:22:47 +02:00
2025-10-15 23:27:03 +03:00
2024-12-20 17:44:56 +01:00
2023-08-31 19:47:43 +02:00
2024-09-10 13:22:47 +02:00
2024-09-13 20:12:16 +02:00
2022-03-14 15:16:16 +04:00
2025-10-01 22:08:25 +03:00
2024-07-22 12:47:28 +04:00
2022-11-08 10:23:06 +01:00
2022-11-08 10:23:06 +01:00
2025-07-17 06:57:23 +03:00
2023-08-31 19:47:43 +02:00
2023-06-05 20:48:34 +02:00
2026-05-30 09:57:25 +03:00