Mesa (master): mesa: fix inverted buffer object test
Brian Paul
brianp at kemper.freedesktop.org
Fri Oct 30 14:31:42 UTC 2009
Module: Mesa
Branch: master
Commit: 730a3de9f9774710ad5bbea2f32dc3af3c764732
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=730a3de9f9774710ad5bbea2f32dc3af3c764732
Author: Brian Paul <brianp at vmware.com>
Date: Fri Oct 30 08:30:59 2009 -0600
mesa: fix inverted buffer object test
Fixes bug 24799.
---
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 10c6947..e4a9ac1 100644
--- a/src/mesa/main/texgetimage.c
+++ b/src/mesa/main/texgetimage.c
@@ -713,7 +713,7 @@ _mesa_GetTexImage( GLenum target, GLint level, GLenum format,
return;
}
- if (_mesa_is_bufferobj(ctx->Pack.BufferObj) && !pixels) {
+ if (!_mesa_is_bufferobj(ctx->Pack.BufferObj) && !pixels) {
/* not an error, do nothing */
return;
}
More information about the mesa-commit
mailing list