This generates a shader based on the current gstate, but it's called whenever the framebuffer is created / updated.  So, this is causing spurious shader generation when debugging.

-[Unknown]