OSDN Git Service

swrast: use Map/UnmapTextureImage() in framebuffer map/unmap code
authorBrian Paul <brianp@vmware.com>
Thu, 19 Jan 2012 00:39:33 +0000 (17:39 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 28 Jan 2012 02:02:41 +0000 (18:02 -0800)
commit12370e050a62769052c967462fb30c6d4c6a95fb
tree0c208b576f9c20fee1d525441cb6d082e6307994
parent5163fed9194e4dfcd9a1935cffcdaff93f4ea846
swrast: use Map/UnmapTextureImage() in framebuffer map/unmap code

When we're actually rendering into a texture, map the texture image
instead of the corresponding renderbuffer.  Before, we just copied
a pointer from the texture image to the renderbuffer.  This change
will make the code usable by hardware drivers.
(cherry picked from commit 1caf698191fb871850311353862eb7fc927f9f9c)
src/mesa/swrast/s_renderbuffer.c