mesa: add KHR_no_error support to glBeginConditionalRender()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Jul 2017 09:07:57 +0000 (11:07 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 2 Aug 2017 10:54:31 +0000 (12:54 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/GL3x.xml
src/mesa/main/condrender.c
src/mesa/main/condrender.h

index e55b5bbe65e1fa2413756995176421f1b14eb221..63a57ebc1e2b42a18cd4e27a92b89573600e701a 100644 (file)
 
   <!-- These functions alias ones from GL_NV_conditional_render -->
 
-  <function name="BeginConditionalRender">
+  <function name="BeginConditionalRender" no_error="true">
     <param name="query" type="GLuint"/>
     <param name="mode" type="GLenum"/>
   </function>
index 95d6d6ad5f06a24558c88e22c15dd3723aa98aac..24a7f4b6945676ede9501a53499919fb92515765 100644 (file)
@@ -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)
 {
index 90d7fb722c7f21b991f6e6e5e38e60739054880c..6b761d1a1b06141b02675468c68ca06cb15fb1c5 100644 (file)
@@ -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);