mesa: fix inverted buffer object test

Fixes bug 24799.
This commit is contained in:
Brian Paul 2009-10-30 08:30:59 -06:00
parent 71cd40bccf
commit 730a3de9f9

View file

@ -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;
}