Add SDL_HINT_VIDEO_EGL_ALLOW_TRANSPARENCY

This commit is contained in:
Ethan Lee committed 2021-08-25 16:40:02 -04:00
1 parent 5113fedfa0
commit 524964f966
2 files changed
+13 -1

No files matched your search

+2 -1
View File
@@ -1223,8 +1223,9 @@ SDL_EGL_CreateSurface(_THIS, NativeWindowType nw)
#ifdef EGL_EXT_present_opaque
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;
attribs[attr++] = EGL_TRUE;
attribs[attr++] = allow_transparent ? EGL_FALSE : EGL_TRUE;
}
#endif