diff options
author | Laura Ekstrand <[email protected]> | 2015-02-06 15:23:05 -0800 |
---|---|---|
committer | Fredrik Höglund <[email protected]> | 2015-05-14 15:48:15 +0200 |
commit | 7518c6b5b2ae8b2a6e931d4be1d5976d553983a0 (patch) | |
tree | 2ba39c63774a27fa76cf1ad8fc2f4b8d50803ee7 /src/mesa/main/context.c | |
parent | 642fb71277b6e4c5d57ad7a7d6f2d5aae9b746ef (diff) |
main: Refactor _mesa_ReadBuffer.
This could have added a new DD table entry for ReadBuffer that takes an
arbitrary read buffer, but, after looking at the existing DD functions,
Kenneth Graunke recommended that we just skip calling the DD functions in the
case of ARB_direct_state_access. The DD implementations for ReadBuffer
have limited functionality, especially with respect to
ARB_direct_state_access.
[Fredrik: Call the driver function when fb is the bound read buffer]
Reviewed-by: Fredrik Höglund <[email protected]>
Signed-off-by: Fredrik Höglund <[email protected]>
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 279716a83d5..544cc142fde 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1579,7 +1579,7 @@ handle_first_current(struct gl_context *ctx) bufferIndex = BUFFER_FRONT_LEFT; } - _mesa_readbuffer(ctx, buffer, bufferIndex); + _mesa_readbuffer(ctx, ctx->ReadBuffer, buffer, bufferIndex); } } |