Like I said, you need an #ifdef that drops a megaton of asserts on the N64 renderer to catch bad values immediately when they originate.