check before calling upstream glEnable/Disable