mesa: fix GetTexImage if mesa format and internal format don't match
authorMarek Olšák <maraeo@gmail.com>
Wed, 6 Feb 2013 21:39:53 +0000 (22:39 +0100)
committerMarek Olšák <maraeo@gmail.com>
Mon, 11 Feb 2013 18:43:01 +0000 (19:43 +0100)
commitcb6470775c0139323bf889d2df2facdbc06a2b09
treed90da215803505ba7981930442bb464c20a8596a
parentc8379204ab0af97558871fffccdd74c60a41776a
mesa: fix GetTexImage if mesa format and internal format don't match

Tested with softpipe only exposing RGBA formats.

NOTE: This is a candidate for the stable branches.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/pack.c
src/mesa/main/texgetimage.c