Commit 2813c08b authored by Brian Paul's avatar Brian Paul

mesa: fix error test mistake in _mesa_CopyBufferSubData()

parent 2e708fa9
......@@ -1254,7 +1254,7 @@ _mesa_CopyBufferSubData(GLenum readTarget, GLenum writeTarget,
return;
}
if (writeOffset + size > src->Size) {
if (writeOffset + size > dst->Size) {
_mesa_error(ctx, GL_INVALID_VALUE,
"glCopyBuffserSubData(writeOffset + size = %d)",
writeOffset, 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