st/mesa: Ignore internal_format in st_context_teximage.
authorChia-I Wu <olv@lunarg.com>
Fri, 7 May 2010 09:34:15 +0000 (17:34 +0800)
committerChia-I Wu <olv@lunarg.com>
Sun, 9 May 2010 08:23:28 +0000 (16:23 +0800)
commit913d7c388d1167a6cb3ccb52eb50f4c4f183b033
treeb6c02c24fd8b553823025565087539ad09ef8c41
parent8ad3e0b55df50beac8ba3c5cafa0be79641a4977
st/mesa: Ignore internal_format in st_context_teximage.

When internal_format and tex->format differ, st_finailize_texture will
surface_copy between surfaces with different formats.  This commit works
around the issue by ignoring internal_format.  A sane fix is needed
here.
src/mesa/state_tracker/st_manager.c