Hi, I run into problem with persistent mapping of buffer storage, where I get error during drawcalls saying that buffer is mapped.
OpenGL specs 4.4, section 6.3.2
Any GL command which attempts to read from, write to, or change the state of
a buffer object may generate an INVALID_OPERATION error if all or part of the
buffer object is mapped, unless it was allocated by a call to BufferStorage with
the MAP_PERSISTENT_BIT included in flags.
const GLbitfield flags = GL_MAP_WRITE_BIT | GL_MAP_PERSISTENT_BIT | GL_MAP_COHERENT_BIT; glBufferStorage(GL_ARRAY_BUFFER, sizeof(data), NULL, flags); void *map = glMapBufferRange(GL_ARRAY_BUFFER, 0, sizeof(data), flags);
And I get during draw calls from debug callback this error message:
GL_INVALID_OPERATION error generated. Buffer is mapped.
I also run apitest (https://github.com/nvMcJohn/apitest) and I get same error.
OS: centos 6.5, x86_64