diff options
author | Brian Paul <[email protected]> | 2009-06-02 21:23:28 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-06-02 21:35:11 -0600 |
commit | 2813c08b35aa1b4fafa47f4421c9822ff8f6f85c (patch) | |
tree | 7c28046fd0a0a3bf0211d2a5cc3a90ad2a1d19af | |
parent | 2e708fa9094a2eb54f7399060183118652ef1825 (diff) |
mesa: fix error test mistake in _mesa_CopyBufferSubData()
-rw-r--r-- | src/mesa/main/bufferobj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 88b51fe60ff..5fa13d9b542 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -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); |