mesa: fix error test mistake in _mesa_CopyBufferSubData()
authorBrian Paul <brianp@vmware.com>
Wed, 3 Jun 2009 03:23:28 +0000 (21:23 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 3 Jun 2009 03:35:11 +0000 (21:35 -0600)
src/mesa/main/bufferobj.c

index 88b51fe60ffb0bfe53972b23a36be9a471549f33..5fa13d9b54276712960785c55ba37b9cfadc2372 100644 (file)
@@ -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);