Skip to content

Fix SDL3_compat-caused flicker#6767

Merged
BMagnu merged 1 commit into
scp-fs2open:masterfrom
BMagnu:always_window_res
Jun 10, 2025
Merged

Fix SDL3_compat-caused flicker#6767
BMagnu merged 1 commit into
scp-fs2open:masterfrom
BMagnu:always_window_res

Conversation

@BMagnu

@BMagnu BMagnu commented Jun 10, 2025

Copy link
Copy Markdown
Member

With modern SDL, notably SDL3-compat for SDL2 API, but possibly also slightly newer SDL2 versions, reading from the frontbuffer just doesn't work and just yields zeroes.
Unfortunately, screenshots and pause dialogs rely on that feature.
However, if we route things through an intermediate buffer (as we already need to do to fix fullscreen weirdness of Windows 11), this isn't an issue.
As such, just unconditionally enable this through window_res.

@BMagnu BMagnu added fix A fix for bugs, not-a-bugs, and/or regressions. graphics A feature or issue related to graphics (2d and 3d) labels Jun 10, 2025
@BMagnu BMagnu merged commit f342925 into scp-fs2open:master Jun 10, 2025
18 checks passed
@wookieejedi wookieejedi mentioned this pull request Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A fix for bugs, not-a-bugs, and/or regressions. graphics A feature or issue related to graphics (2d and 3d)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants