bug fix of OsdGLVertexBuffer::UpdateData. the starting index was wrong.

This commit is contained in:
Takahito Tejima 2013-05-10 08:53:06 -07:00
parent 6ea485de47
commit 7632489758

View File

@ -103,7 +103,7 @@ OsdGLVertexBuffer::UpdateData(const float *src, int startVertex, int numVertices
glBindBuffer(GL_ARRAY_BUFFER, _vbo);
int size = numVertices * _numElements * sizeof(float);
glBufferSubData(GL_ARRAY_BUFFER, startVertex * _numElements, size, src);
glBufferSubData(GL_ARRAY_BUFFER, startVertex * _numElements * sizeof(float), size, src);
glBindBuffer(GL_ARRAY_BUFFER, 0);
}