mesa/st: enable carry/borrow lowering pass
[mesa.git] / src / mesa / main / readpix.c
index 522b3464c5d4efa97e30e18cbf53635955817de2..b09cf54994a638c27e29da96b07640e62cd427f1 100644 (file)
@@ -1033,7 +1033,7 @@ _mesa_ReadnPixelsARB( GLint x, GLint y, GLsizei width, GLsizei height,
    }
 
    if (_mesa_is_bufferobj(ctx->Pack.BufferObj) &&
-       _mesa_bufferobj_mapped(ctx->Pack.BufferObj)) {
+       _mesa_check_disallowed_mapping(ctx->Pack.BufferObj)) {
       /* buffer is mapped - that's an error */
       _mesa_error(ctx, GL_INVALID_OPERATION, "glReadPixels(PBO is mapped)");
       return;