Skip to content

Reset sticky BGFX clear state before drawing invalidated areas and paths atlas - #94

Open
alex-v-dev wants to merge 1 commit into
VitalAudio:mainfrom
alex-v-dev:fix-sticky-clear-state
Open

Reset sticky BGFX clear state before drawing invalidated areas and paths atlas#94
alex-v-dev wants to merge 1 commit into
VitalAudio:mainfrom
alex-v-dev:fix-sticky-clear-state

Conversation

@alex-v-dev

Copy link
Copy Markdown

This PR sets the bgfx::setViewClear to BGFX_CLEAR_NONE when invalidating layers and path atlas so that PostEffects can't contaminate the clear state (which sticks per view id).

Otherwise we can end up in a situation where post effects can alter the clear state of a submit pass (view id) that is reused later on for other drawing tasks.

…ayers and path atlas so that PostEffects can't contaminate the clear state (which sticks per view id)
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.

1 participant