OSDN Git Service

mesa: fix _mesa_texstore_argb8888() for MESA_FORMAT_XRGB8888
authorBrian Paul <brianp@vmware.com>
Thu, 29 Oct 2009 23:49:50 +0000 (17:49 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 29 Oct 2009 23:52:01 +0000 (17:52 -0600)
commitf920d496e1b5b01a3ba9bcd7dcff5c19bc109da2
tree79436d0bade5e043a9e3ad32cf276994a0116c5a
parentc243e8dd23e8827afe926ec6314ffdfa15b3f7ab
mesa: fix _mesa_texstore_argb8888() for MESA_FORMAT_XRGB8888

If we hit the general path and call _mesa_make_temp_chan_image() we
always want to get a GL_RGBA texture.  We were getting a 3-channel
GL_RGB texture before and that messed up the memory layout.
src/mesa/main/texstore.c