gallium: fix additional glCopyTex[Sub]Image issues
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 8 Aug 2008 16:39:56 +0000 (10:39 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 8 Aug 2008 16:39:56 +0000 (10:39 -0600)
commit27858226dc4eb3e64d980ba8530c2fd2e39218cf
tree33dd1f65c978f17be1b1dd030760d873691295c5
parent48cf46a29d8bccb0d83ae7e53e4ded44492cdb5f
gallium: fix additional glCopyTex[Sub]Image issues

Use the TexFormat->StoreImage() routine for fallbacks.  This handles the
case of copying RGBA framebuffer data into an RGBA texture when the base
format is GL_RGB (or GL_LUMINANCE, etc).  In that case, we need to set
the texture's alpha=1 and override the framebuffer's alpha.
src/mesa/state_tracker/st_cb_texture.c