BGFX and D3D9 renderer fixes for issues #11104, #11106, and #11107 #11249
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix for #11107: Simply removed the erroneously copy/pasted line.
Fix for #11106: Avoiding redundant state-set calls was going awry. We now ensure that the first
set_texture
call of a scene always succeeds by clearing the cached texture pointer at frame start.Fix for #11104: Calling
post_pass
anddownsample_pass
to generate bloom targets when bloom is disabled was causing issues when applying the post/shadowmask pass. Avoid calling them entirely if bloom is disabled, since the downsampled targets are not used anyway.