Skip to content

fix glTexImage2D not flushing data cache#52

Merged
fincs merged 1 commit into
devkitPro:masterfrom
Duckonaut:master
Sep 14, 2023
Merged

fix glTexImage2D not flushing data cache#52
fincs merged 1 commit into
devkitPro:masterfrom
Duckonaut:master

Conversation

@Duckonaut

Copy link
Copy Markdown
Contributor

The current glTexImage2D implementation doesn't flush data caches before using dmaCopyWords, despite what the libnds documentation suggests here.

This issue was not reproducible in DeSmuME, I have only encountered it on real hardware (a DSi XL).

Comparison before the change vs after the change.

Before:
image
After:
image

This fixes #50

@fincs fincs merged commit b37c88d into devkitPro:master Sep 14, 2023
@ds-sloth ds-sloth mentioned this pull request Aug 25, 2024
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.

glTexImage2D corrupts textures

2 participants