palette fix for switching from software to OpenGL mode with an 8bpp back surface