From 9337e4d38a5f057507690bfe11a6ba99a1ec81d3 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 19 Jul 2017 13:46:25 +0200 Subject: mesa: add KHR_no_error support to glDrawBuffers() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mesa/main/buffers.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/mesa/main/buffers.c') diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c index 2288e51f6ea..68500abf960 100644 --- a/src/mesa/main/buffers.c +++ b/src/mesa/main/buffers.c @@ -598,6 +598,22 @@ draw_buffers_error(struct gl_context *ctx, struct gl_framebuffer *fb, GLsizei n, } +static void +draw_buffers_no_error(struct gl_context *ctx, struct gl_framebuffer *fb, + GLsizei n, const GLenum *buffers, const char *caller) +{ + draw_buffers(ctx, fb, n, buffers, caller, true); +} + + +void GLAPIENTRY +_mesa_DrawBuffers_no_error(GLsizei n, const GLenum *buffers) +{ + GET_CURRENT_CONTEXT(ctx); + draw_buffers_no_error(ctx, ctx->DrawBuffer, n, buffers, "glDrawBuffers"); +} + + void GLAPIENTRY _mesa_DrawBuffers(GLsizei n, const GLenum *buffers) { -- cgit v1.2.3