From: Brian Paul Date: Fri, 30 Oct 2009 14:30:59 +0000 (-0600) Subject: mesa: fix inverted buffer object test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=730a3de9f9774710ad5bbea2f32dc3af3c764732;p=mesa.git mesa: fix inverted buffer object test Fixes bug 24799. --- diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index 10c6947c374..e4a9ac14b1c 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; }