Function to get max GL version from driver