mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-28 06:11:07 +00:00
Merge pull request #99 from njlitke/master
Fixed a buffer overrun error in OsdCLGLVertexBuffer::UpdateData.
This commit is contained in:
commit
de3c70f96f
@ -99,7 +99,7 @@ void
|
|||||||
OsdCLGLVertexBuffer::UpdateData(const float *src, int numVertices,
|
OsdCLGLVertexBuffer::UpdateData(const float *src, int numVertices,
|
||||||
cl_command_queue queue) {
|
cl_command_queue queue) {
|
||||||
|
|
||||||
size_t size = _numVertices * _numElements * sizeof(float);
|
size_t size = numVertices * _numElements * sizeof(float);
|
||||||
|
|
||||||
map(queue);
|
map(queue);
|
||||||
clEnqueueWriteBuffer(queue, _clMemory, true, 0, size, src, 0, NULL, NULL);
|
clEnqueueWriteBuffer(queue, _clMemory, true, 0, size, src, 0, NULL, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user