From fc94a4b30d8ac00a560d66ee19be9d8e7ea9b950 Mon Sep 17 00:00:00 2001 From: Mariotaku Date: Sun, 13 Jul 2025 22:30:38 +0900 Subject: [PATCH] don't use EGL_EXT_present_opaque on webOS --- src/video/SDL_egl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c index 50f7082f489b0..9b58a70bba7a3 100644 --- a/src/video/SDL_egl.c +++ b/src/video/SDL_egl.c @@ -1217,7 +1217,8 @@ EGLSurface *SDL_EGL_CreateSurface(_THIS, NativeWindowType nw) } } -#ifdef EGL_EXT_present_opaque + // webOS 10+ reports EGL_EXT_present_opaque, composition breaks if we use it. +#if defined(EGL_EXT_present_opaque) && !defined(__WEBOS__) if (SDL_EGL_HasExtension(_this, SDL_EGL_DISPLAY_EXTENSION, "EGL_EXT_present_opaque")) { const SDL_bool allow_transparent = SDL_GetHintBoolean(SDL_HINT_VIDEO_EGL_ALLOW_TRANSPARENCY, SDL_FALSE); attribs[attr++] = EGL_PRESENT_OPAQUE_EXT;