Skip to content

Conversation

@mardy
Copy link
Collaborator

@mardy mardy commented Jan 16, 2025

The logic for putting return or break in the getter code is the following: if the current getter can lookup the value, it should return immediately after storing it into the output variable; otherwise, we should "break" from the switch, and then there should be a fallback code to delegate the operation to a different getter.

This fixes gluBuild2DMipmaps(), which calls

glGetIntegerv(GL_UNPACK_LSB_FIRST, &psm->unpack_lsb_first);

and was broken by commit 94b3aab.

The logic for putting return or break in the getter code is the
following: if the current getter can lookup the value, it should return
immediately after storing it into the output variable; otherwise, we
should "break" from the switch, and then there should be a fallback code
to delegate the operation to a different getter.

This fixes gluBuild2DMipmaps(), which calls

    glGetIntegerv(GL_UNPACK_LSB_FIRST, &psm->unpack_lsb_first);

and was broken by commit 94b3aab.
@mardy mardy mentioned this pull request Jan 18, 2025
@WinterMute WinterMute merged commit 04bdc3c into devkitPro:master Jan 27, 2025
2 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