Mapping the whole buffer doesn't mean we can invalidate it;

This commit is contained in:
bjorn 2018-03-11 11:24:50 -07:00
parent c0d4d33d47
commit 491fbcd2d8
1 changed files with 0 additions and 1 deletions

View File

@ -269,7 +269,6 @@ VertexPointer lovrMeshMap(Mesh* mesh, int start, size_t count, bool read, bool w
GLbitfield access = 0;
access |= read ? GL_MAP_READ_BIT : 0;
access |= write ? GL_MAP_WRITE_BIT : 0;
access |= (write && start == 0 && count == mesh->vertexData->count) ? GL_MAP_INVALIDATE_BUFFER_BIT : 0;
lovrGraphicsBindVertexBuffer(mesh->vbo);
VertexPointer pointer;
pointer.raw = glMapBufferRange(GL_ARRAY_BUFFER, start * stride, count * stride, access);