GX_InvalidateTexAll() does nothing
Posted: Sat Jan 20, 2024 3:49 am
Hello!
I've been trying for several days to get this to work and at this point I am convinced that it is a bug.
According to the docs if I modify a texture in main memory and call GX_InvalidateTexAll() it's supposed to reload the texture into the texture cache, but it just doesn't work on real hardware. It works in dolphin for some reason though.
I can even change to a completely different texture image with GX_InitTexObjData() and that works fine but just changing pixels in the texture does nothing.
I've attached an example program that shows a spinning white textured cube and pressing left or right on the dpad of a gamecube controller in the player one slot should erase pixels on the texture.
Am I just doing something wrong?
I've been trying for several days to get this to work and at this point I am convinced that it is a bug.
According to the docs if I modify a texture in main memory and call GX_InvalidateTexAll() it's supposed to reload the texture into the texture cache, but it just doesn't work on real hardware. It works in dolphin for some reason though.
I can even change to a completely different texture image with GX_InitTexObjData() and that works fine but just changing pixels in the texture does nothing.
I've attached an example program that shows a spinning white textured cube and pressing left or right on the dpad of a gamecube controller in the player one slot should erase pixels on the texture.
Am I just doing something wrong?