I'm not fully sure, I'm not very familiar with 3D stuff.
I should probably specify I'm also working with the ancient and dusty GM8.
It seems to correct itself if I set the last two variables (usually containing the color and alpha I presume) to 0, and the first value (usually 9) to 8