st/mesa: Fix grabbing the wrong variant if glDrawPixels is called