From: Brian Paul Date: Wed, 3 Jun 2009 03:23:28 +0000 (-0600) Subject: mesa: fix error test mistake in _mesa_CopyBufferSubData() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2813c08b35aa1b4fafa47f4421c9822ff8f6f85c;p=mesa.git mesa: fix error test mistake in _mesa_CopyBufferSubData() --- 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);