Fixes occasional GLXBadDrawable crash on linux