Mesa (7.11): mesa: fix inverted pbo test error at _mesa_GetnCompressedTexImageARB
Ian Romanick
idr at kemper.freedesktop.org
Mon Oct 24 22:54:49 UTC 2011
Module: Mesa
Branch: 7.11
Commit: b8cc97ed2648ef0c96875595c91df78a80dc03e1
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b8cc97ed2648ef0c96875595c91df78a80dc03e1
Author: Yuanhan Liu <yuanhan.liu at linux.intel.com>
Date: Sun Oct 16 09:35:33 2011 +0800
mesa: fix inverted pbo test error at _mesa_GetnCompressedTexImageARB
It seems like a typo.
Signed-off-by: Yuanhan Liu <yuanhan.liu at linux.intel.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
(cherry picked from commit 403cf7c56fc6decb7636114dc1dadb7adf99a7a4)
---
src/mesa/main/texgetimage.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c
index 26c2ff9..2bcbf06 100644
--- a/src/mesa/main/texgetimage.c
+++ b/src/mesa/main/texgetimage.c
@@ -838,7 +838,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;
}
More information about the mesa-commit
mailing list