From 9a0b2033822cbc15181710ec80b2163447553038 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 20 Jul 2017 11:07:57 +0200 Subject: mesa: add KHR_no_error support to glBeginConditionalRender() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mesa/main/condrender.c | 8 ++++++++ src/mesa/main/condrender.h | 3 +++ 2 files changed, 11 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/main/condrender.c b/src/mesa/main/condrender.c index 95d6d6ad5f0..24a7f4b6945 100644 --- a/src/mesa/main/condrender.c +++ b/src/mesa/main/condrender.c @@ -104,6 +104,14 @@ begin_conditional_render(struct gl_context *ctx, GLuint queryId, GLenum mode, } +void GLAPIENTRY +_mesa_BeginConditionalRender_no_error(GLuint queryId, GLenum mode) +{ + GET_CURRENT_CONTEXT(ctx); + begin_conditional_render(ctx, queryId, mode, true); +} + + void GLAPIENTRY _mesa_BeginConditionalRender(GLuint queryId, GLenum mode) { diff --git a/src/mesa/main/condrender.h b/src/mesa/main/condrender.h index 90d7fb722c7..6b761d1a1b0 100644 --- a/src/mesa/main/condrender.h +++ b/src/mesa/main/condrender.h @@ -31,6 +31,9 @@ #include "context.h" +void GLAPIENTRY +_mesa_BeginConditionalRender_no_error(GLuint queryId, GLenum mode); + extern void GLAPIENTRY _mesa_BeginConditionalRender(GLuint queryId, GLenum mode); -- cgit v1.2.3