Gloo: try handling ATI-bug only when strictly necessary