From 491fbcd2d827762bdf088c4e21e2d03a76c38a7c Mon Sep 17 00:00:00 2001 From: bjorn Date: Sun, 11 Mar 2018 11:24:50 -0700 Subject: [PATCH] Mapping the whole buffer doesn't mean we can invalidate it; --- src/graphics/mesh.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/graphics/mesh.c b/src/graphics/mesh.c index 3d42a974..c4706589 100644 --- a/src/graphics/mesh.c +++ b/src/graphics/mesh.c @@ -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);