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

ogc: reset cull mode, Z-buffering and alpha compare when drawing cursor #84

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

mardy
Copy link
Collaborator

@mardy mardy commented Nov 7, 2024

OpenGX might have set the GPU to perform Z-buffering, triangle culling and alpha compare in such a way that our mouse cursor will not be drawn. For that reason, reset them to ensure that our cursor will always be drawn.

Extra care must be put to restore these registers to the same state in which SDL had set them before, in order not to break 2D applications.

OpenGX might have set the GPU to perform Z-buffering, triangle culling
and alpha compare in such a way that our mouse cursor will not be drawn.
For that reason, reset them to ensure that our cursor will always be
drawn.

Extra care must be put to restore these registers to the same state in
which SDL had set them before, in order not to break 2D applications.
@mardy mardy mentioned this pull request Nov 16, 2024
@WinterMute WinterMute merged commit 76b9c04 into devkitPro:ogc-sdl-2.28 Nov 16, 2024
29 of 33 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.

2 participants