[Mesa-dev] [PATCH 06/10] mesa: add KHR_no_error support for glStencilOpSeparate()
Samuel Pitoiset
samuel.pitoiset at gmail.com
Tue Jun 20 21:18:18 UTC 2017
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/mapi/glapi/gen/gl_API.xml | 2 +-
src/mesa/main/stencil.c | 9 +++++++++
src/mesa/main/stencil.h | 3 +++
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index a0b93cb1490..513b57aab3d 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -5279,7 +5279,7 @@
<glx ignore="true"/>
</function>
- <function name="StencilOpSeparate" es2="2.0">
+ <function name="StencilOpSeparate" es2="2.0" no_error="true">
<param name="face" type="GLenum"/>
<param name="sfail" type="GLenum"/>
<param name="zfail" type="GLenum"/>
diff --git a/src/mesa/main/stencil.c b/src/mesa/main/stencil.c
index fa68fa1bd0d..d7e94194012 100644
--- a/src/mesa/main/stencil.c
+++ b/src/mesa/main/stencil.c
@@ -430,6 +430,15 @@ stencil_op_separate(struct gl_context *ctx, GLenum face, GLenum sfail,
void GLAPIENTRY
+_mesa_StencilOpSeparate_no_error(GLenum face, GLenum sfail, GLenum zfail,
+ GLenum zpass)
+{
+ GET_CURRENT_CONTEXT(ctx);
+ stencil_op_separate(ctx, face, sfail, zfail, zpass);
+}
+
+
+void GLAPIENTRY
_mesa_StencilOpSeparate(GLenum face, GLenum sfail, GLenum zfail, GLenum zpass)
{
GET_CURRENT_CONTEXT(ctx);
diff --git a/src/mesa/main/stencil.h b/src/mesa/main/stencil.h
index af7067381c7..87708e009c9 100644
--- a/src/mesa/main/stencil.h
+++ b/src/mesa/main/stencil.h
@@ -56,6 +56,9 @@ _mesa_StencilOp( GLenum fail, GLenum zfail, GLenum zpass );
extern void GLAPIENTRY
_mesa_ActiveStencilFaceEXT(GLenum face);
+void GLAPIENTRY
+_mesa_StencilOpSeparate_no_error(GLenum face, GLenum fail, GLenum zfail,
+ GLenum zpass);
extern void GLAPIENTRY
_mesa_StencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass);
--
2.13.1
More information about the mesa-dev
mailing list