mesa: fix inverted pbo test error at _mesa_GetnCompressedTexImageARB
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Sun, 16 Oct 2011 01:35:33 +0000 (09:35 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 19 Oct 2011 01:28:51 +0000 (09:28 +0800)
It seems like a typo.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/texgetimage.c

index f9118860babe6c095752ced7858cf7c2de0d6b98..06e032396e4e5e49fd0e560bc41358a0c3137b28 100644 (file)
@@ -884,7 +884,7 @@ _mesa_GetnCompressedTexImageARB(GLenum target, GLint level, GLsizei bufSize,
       return;
    }
 
-   if (_mesa_is_bufferobj(ctx->Pack.BufferObj) && !img) {
+   if (!_mesa_is_bufferobj(ctx->Pack.BufferObj) && !img) {
       /* not an error, do nothing */
       return;
    }