gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > LIBNDS: paletted_cube fix

#76027 - MrK - Fri Mar 17, 2006 8:00 pm

paletted_cube sample seems that no longer works in hardware.

I've tracked the bug down to this:

put this before main
Code:

        extern uint32  nextPBlock;


and put this at the start of main
Code:

   nextPBlock=0;


and everything works. It's weird, the nextPBlock variable seems to be initialized in the library... maybe a buffer overrun?