Skip to content

Fix depth-only rendering. - #41

Merged
ga2mer merged 1 commit into
sonicnext-dev:mainfrom
squidbus:fix-depth
Jul 30, 2025
Merged

Fix depth-only rendering.#41
ga2mer merged 1 commit into
sonicnext-dev:mainfrom
squidbus:fix-depth

Conversation

@squidbus

@squidbus squidbus commented Jul 30, 2025

Copy link
Copy Markdown
Collaborator

Setting render target to nullptr was being ignored because it causes crashes. Turns out the crashes are only because the game constantly sets targets 1-3 to null and they were all being treated as target 0. Simply checking if index == 0 instead and allowing nullptr fixes depth-only rendering.

Fixes issue where shadow map rendering may be cut off due to smaller color target: #29

@ga2mer
ga2mer merged commit a6fc252 into sonicnext-dev:main Jul 30, 2025
9 of 12 checks passed
@squidbus
squidbus deleted the fix-depth branch August 7, 2025 22:17
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.

2 participants