dri2: Fix bug in attribute handling for non-desktop OpenGL contexts