mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-05 22:41:09 +00:00
bug fix of OsdGLVertexBuffer::UpdateData. the starting index was wrong.
This commit is contained in:
parent
6ea485de47
commit
7632489758
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user