-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDL3: Handle r_fillWindowAlphaChan, cleanups and comments
r_fillWindowAlphaChan is a hack to work around an older issue with Wayland/Mesa, which has been fixed in Mesa 24.1 (and also seems to work with current NVIDIA drivers). Additionally, in SDL3 the EGL-specific (and thus mostly only affecting Wayland) SDL_HINT_VIDEO_EGL_ALLOW_TRANSPARENCY has been replaced with the generic SDL_PROP_WINDOW_CREATE_TRANSPARENT_BOOLEAN (that could also affect other platforms), so it's harder to enable this only for Wayland. I think most people using SDL3 will use a recent Mesa/driver versions, so I don't enable it by default for SDL3 (SDL2 behaves like before). However, with `r_fillWindowAlphaChan 1` the hack can be enabled anyway (r_fillWindowAlphaChan defaults to "-1" which means "let dhewm3 decide whether to enable this")
- Loading branch information
1 parent
3a6210b
commit 81ba620
Showing
5 changed files
with
39 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters