summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/buffers.h
diff options
context:
space:
mode:
authorLaura Ekstrand <[email protected]>2015-02-09 13:33:13 -0800
committerFredrik Höglund <[email protected]>2015-05-14 15:48:15 +0200
commit68c6964b376df7ef2248fab83e0f8abc6df56d47 (patch)
treec7a00c28e20075454bb59d923fd087ba4baa717f /src/mesa/main/buffers.h
parent1f0a5f32d328e54483dd623ad09bd3f6b119f7a6 (diff)
main: Refactor DrawBuffers.
This could have added a new DD table entry for DrawBuffers 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/buffers.h b/src/mesa/main/buffers.h
index 52a23188194..66871d70a09 100644
--- a/src/mesa/main/buffers.h
+++ b/src/mesa/main/buffers.h
@@ -48,6 +48,10 @@ _mesa_DrawBuffer( GLenum mode );
extern void GLAPIENTRY
_mesa_NamedFramebufferDrawBuffer(GLuint framebuffer, GLenum buf);
+extern void
+_mesa_draw_buffers(struct gl_context *ctx, struct gl_framebuffer *fb,
+ GLsizei n, const GLenum *buffers, const char *caller);
+
extern void GLAPIENTRY
_mesa_DrawBuffers(GLsizei n, const GLenum *buffers);