Module: Mesa
Branch: master
Commit: 730a3de9f9774710ad5bbea2f32dc3af3c764732
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=730a3de9f9774710ad5bbea2f32dc3af3c764732

Author: Brian Paul <[email protected]>
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;
    }

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to