Skip to content

Commit 7ac6493

Browse files
committed
don't use EGL_EXT_present_opaque on webOS
1 parent da2a1be commit 7ac6493

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/video/SDL_egl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,8 @@ EGLSurface *SDL_EGL_CreateSurface(_THIS, NativeWindowType nw)
12171217
}
12181218
}
12191219

1220-
#ifdef EGL_EXT_present_opaque
1220+
// webOS 10+ reports EGL_EXT_present_opaque, composition breaks if we use it.
1221+
#if defined(EGL_EXT_present_opaque) && !defined(__WEBOS__)
12211222
if (SDL_EGL_HasExtension(_this, SDL_EGL_DISPLAY_EXTENSION, "EGL_EXT_present_opaque")) {
12221223
const SDL_bool allow_transparent = SDL_GetHintBoolean(SDL_HINT_VIDEO_EGL_ALLOW_TRANSPARENCY, SDL_FALSE);
12231224
attribs[attr++] = EGL_PRESENT_OPAQUE_EXT;

0 commit comments

Comments
 (0)