Skip to content

Fix IRenderPostProcessPass texture unit binding.#21153

Merged
PunkPun merged 1 commit intoOpenRA:bleedfrom
pchote:fix-postprocess-texture-binding
Oct 25, 2023
Merged

Fix IRenderPostProcessPass texture unit binding.#21153
PunkPun merged 1 commit intoOpenRA:bleedfrom
pchote:fix-postprocess-texture-binding

Conversation

@pchote
Copy link
Copy Markdown
Member

@pchote pchote commented Oct 24, 2023

shader.SetTexture() caches state that is then submitted by shader.PrepareRender(). Calling them in the correct order ensures that we aren't copying pixels from the wrong texture (e.g. unit sprite sheets...)

@dnqbob
Copy link
Copy Markdown
Contributor

dnqbob commented Oct 25, 2023

This PR fix #21152 on test.

Copy link
Copy Markdown
Member

@PunkPun PunkPun left a comment

Choose a reason for hiding this comment

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

LGTM

I dunno wether this fixes the first frame on TS as the issue never appeared on my setup

@PunkPun PunkPun merged commit a3c0cee into OpenRA:bleed Oct 25, 2023
@PunkPun
Copy link
Copy Markdown
Member

PunkPun commented Oct 25, 2023

Changelog

@pchote pchote deleted the fix-postprocess-texture-binding branch October 29, 2023 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants