aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-10-30 08:30:59 -0600
committerBrian Paul <[email protected]>2009-10-30 08:31:01 -0600
commit730a3de9f9774710ad5bbea2f32dc3af3c764732 (patch)
tree3d5f9682910b6ef49ec3b03867a0250914d2f88a /src
parent71cd40bccf8dcbf628a7d7d3f7c877d547338c5a (diff)
mesa: fix inverted buffer object test
Fixes bug 24799.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/texgetimage.c2
1 files changed, 1 insertions, 1 deletions
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;
}