Skip to content
Permalink
Browse files

fix #6311

  • Loading branch information...
rtri
rtri committed Oct 6, 2019
1 parent fd77d51 commit 9b37446a61555ae3d05d0e8822b76999d3246beb
Showing with 2 additions and 2 deletions.
  1. +2 −2 rts/Rendering/GL/VBO.cpp
@@ -224,7 +224,7 @@ void VBO::New(GLsizeiptr newSize, GLenum newUsage, const void* newData)
return;

if (immutableStorage && bufSize != 0) {
LOG_L(L_ERROR, "[VBO::%s(size=%lu,usage=0x%x,data=%p)] cannot recreate persistent storage buffer", __func__, (unsigned long) bufSize, usage, data);
LOG_L(L_ERROR, "[VBO::%s({cur,new}size={" _STPF_ "," _STPF_ "},{cur,new}usage={0x%x,0x%x},data=%p)] cannot recreate persistent storage buffer", __func__, bufSize, newSize, usage, newUsage, data);
return;
}

@@ -233,7 +233,7 @@ void VBO::New(GLsizeiptr newSize, GLenum newUsage, const void* newData)

#ifdef GLEW_ARB_buffer_storage
if (immutableStorage) {
glBufferStorage(curBoundTarget, newSize, newData, newUsage = GL_MAP_WRITE_BIT | GL_MAP_PERSISTENT_BIT | GL_MAP_COHERENT_BIT | GL_DYNAMIC_STORAGE_BIT);
glBufferStorage(curBoundTarget, newSize, newData, /*newUsage =*/ GL_MAP_WRITE_BIT | GL_MAP_PERSISTENT_BIT | GL_MAP_COHERENT_BIT | GL_DYNAMIC_STORAGE_BIT);
} else
#endif
{

0 comments on commit 9b37446

Please sign in to comment.
You can’t perform that action at this time.