[Mesa-dev] [Mesa-dev RESEND 20/26] mesa: add KHR_no_error support to glClearBufferfi()
Samuel Pitoiset
samuel.pitoiset at gmail.com
Tue Aug 1 09:11:54 UTC 2017
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/mapi/glapi/gen/GL3x.xml | 2 +-
src/mesa/main/clear.c | 9 +++++++++
src/mesa/main/clear.h | 4 ++++
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/src/mapi/glapi/gen/GL3x.xml b/src/mapi/glapi/gen/GL3x.xml
index 5b3fa26436..6df40db380 100644
--- a/src/mapi/glapi/gen/GL3x.xml
+++ b/src/mapi/glapi/gen/GL3x.xml
@@ -135,7 +135,7 @@
<param name="value" type="const GLfloat *"/>
</function>
- <function name="ClearBufferfi" es2="3.0" marshal="custom">
+ <function name="ClearBufferfi" es2="3.0" marshal="custom" no_error="true">
<param name="buffer" type="GLenum"/>
<param name="drawbuffer" type="GLint"/>
<param name="depth" type="GLfloat"/>
diff --git a/src/mesa/main/clear.c b/src/mesa/main/clear.c
index 4c3400412c..62a00c0401 100644
--- a/src/mesa/main/clear.c
+++ b/src/mesa/main/clear.c
@@ -684,6 +684,15 @@ clear_bufferfi(struct gl_context *ctx, GLenum buffer, GLint drawbuffer,
void GLAPIENTRY
+_mesa_ClearBufferfi_no_error(GLenum buffer, GLint drawbuffer,
+ GLfloat depth, GLint stencil)
+{
+ GET_CURRENT_CONTEXT(ctx);
+ clear_bufferfi(ctx, buffer, drawbuffer, depth, stencil, true);
+}
+
+
+void GLAPIENTRY
_mesa_ClearBufferfi(GLenum buffer, GLint drawbuffer,
GLfloat depth, GLint stencil)
{
diff --git a/src/mesa/main/clear.h b/src/mesa/main/clear.h
index 780e9ca05c..acc0e68ed7 100644
--- a/src/mesa/main/clear.h
+++ b/src/mesa/main/clear.h
@@ -75,6 +75,10 @@ extern void GLAPIENTRY
_mesa_ClearNamedFramebufferfv(GLuint framebuffer, GLenum buffer,
GLint drawbuffer, const GLfloat *value);
+void GLAPIENTRY
+_mesa_ClearBufferfi_no_error(GLenum buffer, GLint drawbuffer,
+ GLfloat depth, GLint stencil);
+
extern void GLAPIENTRY
_mesa_ClearBufferfi(GLenum buffer, GLint drawbuffer,
GLfloat depth, GLint stencil);
--
2.13.3
More information about the mesa-dev
mailing list