OSDN Git Service

mesa: use GL_MAP_INVALIDATE_RANGE_BIT in glTexImage paths
authorBrian Paul <brianp@vmware.com>
Tue, 17 Jan 2012 15:12:30 +0000 (08:12 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 18 Jan 2012 17:44:05 +0000 (10:44 -0700)
commit64fdfefb9d1136c5f98f3e3b2ba716c224a4d792
treea82aa88e7d7aebd17b05f806963a47305df39ef2
parent1d7048f12e7e2e8f42d27aa665f7134f8f10cf4e
mesa: use GL_MAP_INVALIDATE_RANGE_BIT in glTexImage paths

Update the dd.h docs to indicate that GL_MAP_INVALIDATE_RANGE_BIT
can be used with GL_MAP_WRITE_BIT when mapping renderbuffers and
texture images.

Pass the flag when mapping texture images for glTexImage, glTexSubImage,
etc.  It's up to drivers whether to actually make use of the flag.

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/dd.h
src/mesa/main/texstore.c