diff options
author | Brian Paul <[email protected]> | 2009-08-07 09:40:37 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-08-07 09:50:38 -0600 |
commit | 7bf6efe78066b33c4ddd278d78ea44cfd12154cc (patch) | |
tree | c08736f588e03d688a646a22fd4f06fa2ad1d604 /src/mesa/main/readpix.c | |
parent | 67153a4518ad23e31205a44119b1d63951ff1fb9 (diff) |
mesa: use _mesa_bufferobj_mapped()
Diffstat (limited to 'src/mesa/main/readpix.c')
-rw-r--r-- | src/mesa/main/readpix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c index 17535706057..18958fd4386 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; |