Skip to content

Commit

Permalink
fix #6311
Browse files Browse the repository at this point in the history
  • Loading branch information
rtri committed Oct 6, 2019
1 parent fd77d51 commit 9b37446
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rts/Rendering/GL/VBO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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
{
Expand Down

0 comments on commit 9b37446

Please sign in to comment.