fixed gl state bug in usage of cg shader and overlays (i.w. osd)