Hack to avoid GL calls when we're out of context