swrast: fix glReadPixels from texture attachment