mesa: new assertions, comments about buffer mapping
authorBrian Paul <brianp@vmware.com>
Mon, 31 Aug 2009 14:50:15 +0000 (08:50 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 31 Aug 2009 14:50:15 +0000 (08:50 -0600)
commit92033a9516942d7272ce4bf36ecd422009bbaf60
tree4db20f17fa58ed4aa2e7751e7f6f20566fbe00fc
parentc69a4dce75d5282fc88f76da5ac0d27e65012727
mesa: new assertions, comments about buffer mapping

Since ctx->Driver.MapBuffer() and ctx->Driver.MapBufferRange() may be called
from other places in Mesa (such as VBO) it's important that the driver
callbacks set all the buffer object fields properly (Pointer, Offset, Length,
etc).  Add assertions to make sure that the driver does that.
src/mesa/main/bufferobj.c