diff options
author | Laura Ekstrand <[email protected]> | 2015-02-06 10:57:57 -0800 |
---|---|---|
committer | Fredrik Höglund <[email protected]> | 2015-05-14 15:48:15 +0200 |
commit | 2f32e4847d154a9d16869cf03ce66f719d37ec4a (patch) | |
tree | 6cbaa51715bfafdeddbd5f61ff23c5936980c85d /src/mesa/main/buffers.h | |
parent | f8fd8dfee8647a3bd2215fce49626953ecdbdbec (diff) |
main: Refactor _mesa_DrawBuffer.
This could have added a new DD table entry for DrawBuffer that takes an
arbitrary draw 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 DrawBuffer(s)
have limited functionality, especially with respect to
ARB_direct_state_access.
[Fredrik: Call the driver function when fb is the bound draw 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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/buffers.h b/src/mesa/main/buffers.h index bc6d74a867e..4192afd3f13 100644 --- a/src/mesa/main/buffers.h +++ b/src/mesa/main/buffers.h @@ -38,6 +38,10 @@ struct gl_context; struct gl_framebuffer; +extern void +_mesa_draw_buffer(struct gl_context *ctx, struct gl_framebuffer *fb, + GLenum buffer, const char *caller); + extern void GLAPIENTRY _mesa_DrawBuffer( GLenum mode ); |