devkitPro / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
11 stars 12 forks source link

ogc: flush cache when updating textures #40

Closed mardy closed 6 months ago

mardy commented 6 months ago

The code in OGC_UpdateTexture was not calling DC_FlushRange() after modifying the texel data. Since the code obtained when adding this call is very similar to the implementation in OGC_UnlockTexture(), move the texture updating code into a common function.