main: rework the compatibility check of visuals in glXMakeCurrent