mesa: fix incorrect error handling in glBufferDataARB()
authorBrian Paul <brianp@vmware.com>
Fri, 27 Feb 2009 19:30:21 +0000 (12:30 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 27 Feb 2009 19:56:07 +0000 (12:56 -0700)
commit75e3ccf6a5b639834bcda0ff6f9035b148fca8f1
treefea435601677fcca3f07af5269b9f87d2853f402
parent40290745ea645b52d30f866abfe25ac5d58a755c
mesa: fix incorrect error handling in glBufferDataARB()

If glBufferDataARB() is called while a buffer object is currently mapped
we're supposed to unmap the current buffer, then replace it.  Don't generate
an error.
src/mesa/main/bufferobj.c