bug in GX_SetTexCopyDst (libogc)
Posted: Mon Sep 05, 2011 10:47 pm
Only using the following pair of code lines produces the desired result when copying a texture from EBF to main memory:
Shouldn't it be more like
?
Using the second seemingly correct variant creates untouched bytes flickering around on the screen on actual hardware. The dolphin emulator seems to not care and produces correct results in both cases.
Is this sufficient information? I'll be happy to provide more if need be.
Code: Select all
GX_SetTexCopySrc(0, 0, w, h);
GX_SetTexCopyDst(w*2, h*2, GX_TF_IA8, FALSE) // <- factors of 2
Code: Select all
GX_SetTexCopySrc(0, 0, w, h);
GX_SetTexCopyDst(w, h, GX_TF_IA8, FALSE)
Using the second seemingly correct variant creates untouched bytes flickering around on the screen on actual hardware. The dolphin emulator seems to not care and produces correct results in both cases.
Is this sufficient information? I'll be happy to provide more if need be.