gl-430-debug, glObjectLabel shall be moved after glBind
elect86 opened this issue · 0 comments
elect86 commented
Hi,
according to this
the labeling shall be done after the glGen* + glBind*
So, for example here, glObjectLabel
shall be moved at least after the first glBindBuffer
glGenBuffers(buffer::MAX, &BufferName[0]);
glObjectLabel(GL_BUFFER, BufferName[buffer::ELEMENT], -1, "Element Array Buffer object");
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, BufferName[buffer::ELEMENT]);
glBufferData(GL_ELEMENT_ARRAY_BUFFER, ElementSize, ElementData, GL_STATIC_DRAW);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);