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

gpu: Initialize Metal stencil format even if stencil test is disabled #11924

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

flibitijibibo
Copy link
Collaborator

Copy link
Collaborator

@TheSpydog TheSpydog left a comment

Choose a reason for hiding this comment

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

I think adjusting the pixel format assignment like I noted is all we need to do here -- NULL/nil is a valid stencil descriptor, meaning "disable the stencil test for the front/back". So we don't need to set a default state manually.

@TheSpydog TheSpydog changed the title gpu: Initialize Metal stencil state more aggressively gpu: Initialize Metal stencil format even if stencil test is disabled Jan 12, 2025
@slouken slouken merged commit 3df0767 into libsdl-org:main Jan 12, 2025
40 checks passed
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.

GPU: Metal requires initialization for depth stencil format
3 participants