Commit 4c502e05 authored by Brian Paul's avatar Brian Paul

mesa: add/update comments in _mesa_copy_buffer_subdata()

parent 2bdf9344
......@@ -504,7 +504,7 @@ _mesa_copy_buffer_subdata(struct gl_context *ctx,
void *srcPtr, *dstPtr;
/* buffer should not already be mapped */
/* the buffers should not be mapped */
......@@ -514,6 +514,9 @@ _mesa_copy_buffer_subdata(struct gl_context *ctx,
/* Note: the src and dst regions will never overlap. Trying to do so
* would generate GL_INVALID_VALUE earlier.
if (srcPtr && dstPtr)
memcpy(dstPtr, srcPtr, size);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment