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/buffers.h | |
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/buffers.h')
-rw-r--r-- | src/mesa/main/buffers.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/main/buffers.h b/src/mesa/main/buffers.h index 12d57430a39..ca7ad19235b 100644 --- a/src/mesa/main/buffers.h +++ b/src/mesa/main/buffers.h @@ -57,12 +57,17 @@ _mesa_drawbuffers(struct gl_context *ctx, struct gl_framebuffer *fb, const GLbitfield *destMask); extern void -_mesa_readbuffer(struct gl_context *ctx, GLenum buffer, GLint bufferIndex); +_mesa_readbuffer(struct gl_context *ctx, struct gl_framebuffer *fb, + GLenum buffer, GLint bufferIndex); extern void _mesa_update_draw_buffers(struct gl_context *ctx); +extern void +_mesa_read_buffer(struct gl_context *ctx, struct gl_framebuffer *fb, + GLenum buffer, const char *caller); + extern void GLAPIENTRY _mesa_ReadBuffer( GLenum mode ); |