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

SDL GPU Metal iOS - changing render target when scissoring was enabled can cause crash #236

Open
kiddkaffeine opened this issue Mar 4, 2025 · 0 comments

Comments

@kiddkaffeine
Copy link
Contributor

When using SDL_GPU's Metal renderer on iOS, changing the render target if scissoring was recently enabled can cause a crash. If scissoring was just recently disabled, the render state may be not flushed and FNA3D may setScissorRect and Metal can be finicky about scissor rects outside the render target.

Changing ApplySampler() to ApplyState() in https://github.com/FNA-XNA/FNA/blob/master/src/Graphics/GraphicsDevice.cs#L916 fixes the problem, but this is heavy.

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

No branches or pull requests

1 participant