mesa: add KHR_no_error support to glEndConditionalRender()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Jul 2017 09:10:41 +0000 (11:10 +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 63a57ebc1e2b42a18cd4e27a92b89573600e701a..d6040faa3e2a4d49c99a52446268f898fcf150a9 100644 (file)
     <param name="mode" type="GLenum"/>
   </function>
 
-  <function name="EndConditionalRender">
+  <function name="EndConditionalRender" no_error="true">
   </function>
 
   <!-- These functions alias ones from GL_EXT_gpu_shader4 -->
index 051cd8f9629aba6cb13e911442cc9b1bb316b25a..320003aa73f218b36e5e4449d75d92f3324ed3f0 100644 (file)
@@ -146,6 +146,14 @@ end_conditional_render(struct gl_context *ctx)
 }
 
 
+void APIENTRY
+_mesa_EndConditionalRender_no_error(void)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   end_conditional_render(ctx);
+}
+
+
 void APIENTRY
 _mesa_EndConditionalRender(void)
 {
index 6b761d1a1b06141b02675468c68ca06cb15fb1c5..e7672512f7e8aaa8c89aaab1b26520c9cce9dd9f 100644 (file)
@@ -37,6 +37,9 @@ _mesa_BeginConditionalRender_no_error(GLuint queryId, GLenum mode);
 extern void GLAPIENTRY
 _mesa_BeginConditionalRender(GLuint queryId, GLenum mode);
 
+void APIENTRY
+_mesa_EndConditionalRender_no_error(void);
+
 extern void APIENTRY
 _mesa_EndConditionalRender(void);