Don't try to unmap buffers which aren't mapped.
authorDavid Gow <[email protected]>
Tue, 5 Aug 2014 13:48:59 +0000 (21:48 +0800)
committerDavid Gow <[email protected]>
Tue, 5 Aug 2014 13:48:59 +0000 (21:48 +0800)
commit59c3413bc2bd0e6a1ddbf4e67d9d7295de10f65c
tree77591c6e9a24ae55890a451b3f320f3309e3e5e8
parent666fa863baba6345fa5cf66711e9149b5d06b825
Don't try to unmap buffers which aren't mapped.

Fixes the GL_INAVLID_OPERATION that snuck in: this would occur
when calling GraphicsBuffer::Resize() on an unmapped, non-invalidated buffer.
src/graphicsbuffer.cpp

UCC git Repository :: git.ucc.asn.au