Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL: Fix clear of unbound color targets #3564

Merged
merged 1 commit into from Aug 8, 2022

Conversation

gdkchan
Copy link
Member

@gdkchan gdkchan commented Aug 8, 2022

There was a regression (likely from #3400) causing New Super Mario Bros U Deluxe (or any game that tries to clear unbound color targets) to crash with NullReferenceException. This change fixes the issue by making sure that the framebuffer exists and that we don't try to get the layer count from inexistent textures.

@gdkchan gdkchan added gpu Related to Ryujinx.Graphics fix Fix something labels Aug 8, 2022
@marysaka marysaka enabled auto-merge (squash) August 8, 2022 17:35
@marysaka marysaka merged commit 66e7fdb into Ryujinx:master Aug 8, 2022
@gdkchan gdkchan deleted the fix-gl-clear branch August 9, 2022 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Fix something gpu Related to Ryujinx.Graphics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants