meta: Fix glCopyTexImage(GL_LUMINANCE) from non-GL_LUMINANCE source.
authorEric Anholt <eric@anholt.net>
Wed, 8 Jun 2011 20:00:51 +0000 (13:00 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 13 Jun 2011 22:56:36 +0000 (15:56 -0700)
commit296e6b9038131cd246226881208ffebe3c2683c3
treea776fd1f31f073bcb8b746a26cac17df3e879599
parentdf46eb8ec082e020ae7e45d3f584cb1d3dd55653
meta: Fix glCopyTexImage(GL_LUMINANCE) from non-GL_LUMINANCE source.

glReadPixels() was performing RGB -> L conversion differently from the
glTexImage() style conversion appropriate for glCopyTexImage().

Fixes gles2conform copy_texture.
src/mesa/drivers/common/meta.c