Re: [Mesa-dev] [Mesa-dev RESEND 08/26] mesa: add KHR_no_error support to glEndConditionalRender()

2017-08-01 Thread Timothy Arceri

1-8:

Reviewed-by: Timothy Arceri 
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Mesa-dev RESEND 08/26] mesa: add KHR_no_error support to glEndConditionalRender()

2017-08-01 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset 
---
 src/mapi/glapi/gen/GL3x.xml | 2 +-
 src/mesa/main/condrender.c  | 8 
 src/mesa/main/condrender.h  | 3 +++
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/mapi/glapi/gen/GL3x.xml b/src/mapi/glapi/gen/GL3x.xml
index 63a57ebc1e..d6040faa3e 100644
--- a/src/mapi/glapi/gen/GL3x.xml
+++ b/src/mapi/glapi/gen/GL3x.xml
@@ -251,7 +251,7 @@
 
   
 
-  
+  
   
 
   
diff --git a/src/mesa/main/condrender.c b/src/mesa/main/condrender.c
index 051cd8f962..320003aa73 100644
--- a/src/mesa/main/condrender.c
+++ b/src/mesa/main/condrender.c
@@ -147,6 +147,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)
 {
GET_CURRENT_CONTEXT(ctx);
diff --git a/src/mesa/main/condrender.h b/src/mesa/main/condrender.h
index 6b761d1a1b..e7672512f7 100644
--- a/src/mesa/main/condrender.h
+++ b/src/mesa/main/condrender.h
@@ -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);
 
-- 
2.13.3

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev