devkitPro / libnds

C library for Nintendo DS
http://devkitpro.org/viewforum.php?f=38
Other
324 stars 46 forks source link

glTexImage2D corrupts textures #50

Closed rmn20 closed 1 year ago

rmn20 commented 3 years ago

glTexImage2D uses dmaCopy but doesnt call DC_FlushRange causing textures to look corrupted. The Libnds docs say that DC_FlushRange must be called before using dmaCopy, but the library itself ignores this...

https://libnds.devkitpro.org/dma_8h.html