Set gl_CurChunk for creating client-memory IB buffers

This commit is contained in:
baldurk
2018-08-06 15:53:08 +01:00
parent 9e3147d021
commit 98e4a5b613
+3
View File
@@ -1197,7 +1197,10 @@ void WrappedOpenGL::ActivateContext(GLWindowingData winData)
gl_CurChunk = GLChunk::glGenBuffers;
glGenBuffers(1, &ctxdata.m_ClientMemoryIBO);
gl_CurChunk = GLChunk::glBindBuffer;
glBindBuffer(eGL_ELEMENT_ARRAY_BUFFER, ctxdata.m_ClientMemoryIBO);
gl_CurChunk = GLChunk::glBufferData;
glBufferData(eGL_ELEMENT_ARRAY_BUFFER, 64, NULL, eGL_DYNAMIC_DRAW);
if(HasExt[KHR_debug])