Skip to content

Fix screenToBlob with Regards to Current RTT State#6867

Merged
BMagnu merged 1 commit into
scp-fs2open:masterfrom
BMagnu:fix_screenToBlob
Jul 26, 2025
Merged

Fix screenToBlob with Regards to Current RTT State#6867
BMagnu merged 1 commit into
scp-fs2open:masterfrom
BMagnu:fix_screenToBlob

Conversation

@BMagnu

@BMagnu BMagnu commented Jul 25, 2025

Copy link
Copy Markdown
Member

Fixes #6846.

This now explicitly checks and correctly processes the current RTT state when calling screenToBlob.
The problem was originally caused due to #6753 no longer being able to rely on the current implicit OpenGL state and had to explicitly set FBO's. This, if not considered, would effectively "unbind" the current RTT texture, and thus just blob the main screen rather than the current RTT target.

With proper FBO and Color attachment settings for RTT, this also fixes #5436 properly.

@BMagnu BMagnu added this to the Release 25.0 milestone Jul 25, 2025
@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) opengl Features and Issues related to OpenGL labels Jul 25, 2025
@MjnMixael

Copy link
Copy Markdown
Contributor

Thanks for this! I'm confirming the fix works on my end as well.

@wookieejedi wookieejedi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests report fix works as noted above, approving.

@BMagnu BMagnu merged commit fa5ee72 into scp-fs2open:master Jul 26, 2025
20 checks passed
Kestrellius pushed a commit to Kestrellius/fs2open.github.com that referenced this pull request Jul 26, 2025
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) opengl Features and Issues related to OpenGL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RTT unusable by SCPUI gr.ScreenToBlob() causes many OpenGL log errors

3 participants