Skip to content

Fix HDR and Alpha issues in screenshots#7294

Merged
wookieejedi merged 1 commit intoscp-fs2open:masterfrom
MjnMixael:fix_screenshot_issues
Mar 21, 2026
Merged

Fix HDR and Alpha issues in screenshots#7294
wookieejedi merged 1 commit intoscp-fs2open:masterfrom
MjnMixael:fix_screenshot_issues

Conversation

@MjnMixael
Copy link
Copy Markdown
Contributor

Fixes #7292
Fixes #7293

Clamp color values so we don't get undefined behavior from HDR colors in the png writer.

The opengl blend operations can affect the alpha channel in the framebuffer as a side effect so force the alpha channel to 255 before sending it to the png writer. I'm less inclined to mess with the blend function directly because it's unclear what, if anything, modifies the alpha channel intentionally and that has a much larger blast radius.

@wookieejedi wookieejedi added fix A fix for bugs, not-a-bugs, and/or regressions. graphics A feature or issue related to graphics (2d and 3d) labels Mar 16, 2026
@wookieejedi
Copy link
Copy Markdown
Member

I vote for this to be a point release canidate, but I'll defer to @BMagnu.

@wookieejedi wookieejedi added this to the Release 25.0.1 milestone Mar 20, 2026
@wookieejedi
Copy link
Copy Markdown
Member

Given approval will merge later today

@wookieejedi wookieejedi merged commit ff28a9c into scp-fs2open:master Mar 21, 2026
20 checks passed
@MjnMixael MjnMixael deleted the fix_screenshot_issues branch March 21, 2026 15:44
@wookieejedi wookieejedi added the Point Release Candidate An already merged bugfix that may be merged into a previous stable version label Apr 10, 2026
@JohnAFernandez JohnAFernandez added added to point release and removed Point Release Candidate An already merged bugfix that may be merged into a previous stable version labels Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

added to point release 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.

Screenshots can't handle HDR lighting very well screenshots get saved with transperancy for some bizarre reason.

4 participants