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

nv2a: Fix incorrect use of bytes for GL_UNPACK_ROW_LENGTH #1148

Conversation

abaire
Copy link
Contributor

@abaire abaire commented Jul 1, 2022

GL_UNPACK_ROW_LENGTH is supposed to set the length in pixels, but the DXT
path is setting it to bytes, causing it to read beyond the end of the texture.
Reference

Fixes #1002

Test
HW Results

@mborgerson mborgerson merged commit d06a0c2 into xemu-project:master Jul 1, 2022
@abaire abaire deleted the fix/1002/unpack_row_length_use_pixels_not_bytes branch July 1, 2022 21:48
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.

Regression with games now showing distance based (mip mapping?) issues
2 participants