From 2f32e4847d154a9d16869cf03ce66f719d37ec4a Mon Sep 17 00:00:00 2001 From: Laura Ekstrand Date: Fri, 6 Feb 2015 10:57:57 -0800 Subject: main: Refactor _mesa_DrawBuffer. 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 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 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 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 ); -- cgit v1.2.3