forked from Mirrors/openclonk
particles: replaced "TODO" comment
This was actually part of a larger performance boosting commit, which turned out to not actually boost performance. But I want to retain the comment change even when I won't push the larger commit. Having a "todo" comment is just misleading. For an explanation of why that's needed, see http://stackoverflow.com/questions/21652546/what-is-the-role-of-glbindvertexarrays-vs-glbindbuffer-and-what-is-their-relatioshapetextures
parent
6200f4f27a
commit
e3553ca0cd
|
@ -1026,8 +1026,8 @@ void C4ParticleChunk::Draw(C4TargetFacet cgo, C4Object *obj, C4ShaderCall& call,
|
|||
|
||||
// set up the vertex array structure once
|
||||
glBindVertexArray(drawingDataVertexArraysObject);
|
||||
|
||||
// TODO: is this needed?
|
||||
// Bind the correct buffer. glVertexAttribPointer required a valid GL_ARRAY_BUFFER to be bound.
|
||||
// This is weird API design, but we can't do much about it.
|
||||
glBindBuffer(GL_ARRAY_BUFFER, drawingDataVertexBufferObject);
|
||||
|
||||
#ifdef GL_KHR_debug
|
||||
|
|
Loading…
Reference in New Issue