summaryrefslogtreecommitdiff
path: root/src/mesa/main/readpix.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-08-07 09:40:37 -0600
committerBrian Paul <brianp@vmware.com>2009-08-07 09:50:38 -0600
commit7bf6efe78066b33c4ddd278d78ea44cfd12154cc (patch)
treec08736f588e03d688a646a22fd4f06fa2ad1d604 /src/mesa/main/readpix.c
parent67153a4518ad23e31205a44119b1d63951ff1fb9 (diff)
mesa: use _mesa_bufferobj_mapped()
Diffstat (limited to 'src/mesa/main/readpix.c')
-rw-r--r--src/mesa/main/readpix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c
index 1753570605..18958fd438 100644
--- a/src/mesa/main/readpix.c
+++ b/src/mesa/main/readpix.c
@@ -198,7 +198,7 @@ _mesa_ReadPixels( GLint x, GLint y, GLsizei width, GLsizei height,
return;
}
- if (ctx->Pack.BufferObj->Pointer) {
+ if (_mesa_bufferobj_mapped(ctx->Pack.BufferObj)) {
/* buffer is mapped - that's an error */
_mesa_error(ctx, GL_INVALID_OPERATION, "glReadPixels(PBO is mapped)");
return;