From 68c6964b376df7ef2248fab83e0f8abc6df56d47 Mon Sep 17 00:00:00 2001 From: Laura Ekstrand Date: Mon, 9 Feb 2015 13:33:13 -0800 Subject: main: Refactor DrawBuffers. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Fredrik Höglund --- src/mesa/main/buffers.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/main/buffers.h') 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); -- cgit v1.2.3