[Mesa-dev] [Mesa-dev RESEND 26/26] mesa: add KHR_no_error support to glPolygonMode()
Samuel Pitoiset
samuel.pitoiset at gmail.com
Tue Aug 1 09:12:00 UTC 2017
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/mapi/glapi/gen/gl_API.xml | 2 +-
src/mesa/main/polygon.c | 8 ++++++++
src/mesa/main/polygon.h | 3 +++
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index 18a78dc315..8e50a01506 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -2097,7 +2097,7 @@
<glx rop="100"/>
</function>
- <function name="PolygonMode">
+ <function name="PolygonMode" no_error="true">
<param name="face" type="GLenum"/>
<param name="mode" type="GLenum"/>
<glx rop="101"/>
diff --git a/src/mesa/main/polygon.c b/src/mesa/main/polygon.c
index 98a9118fd2..44d943e930 100644
--- a/src/mesa/main/polygon.c
+++ b/src/mesa/main/polygon.c
@@ -221,6 +221,14 @@ polygon_mode(struct gl_context *ctx, GLenum face, GLenum mode, bool no_error)
void GLAPIENTRY
+_mesa_PolygonMode_no_error(GLenum face, GLenum mode)
+{
+ GET_CURRENT_CONTEXT(ctx);
+ polygon_mode(ctx, face, mode, true);
+}
+
+
+void GLAPIENTRY
_mesa_PolygonMode(GLenum face, GLenum mode)
{
GET_CURRENT_CONTEXT(ctx);
diff --git a/src/mesa/main/polygon.h b/src/mesa/main/polygon.h
index 39b7a73be2..1b8186892a 100644
--- a/src/mesa/main/polygon.h
+++ b/src/mesa/main/polygon.h
@@ -51,6 +51,9 @@ _mesa_FrontFace_no_error(GLenum mode);
extern void GLAPIENTRY
_mesa_FrontFace(GLenum mode);
+void GLAPIENTRY
+_mesa_PolygonMode_no_error(GLenum face, GLenum mode);
+
extern void GLAPIENTRY
_mesa_PolygonMode( GLenum face, GLenum mode );
--
2.13.3
More information about the mesa-dev
mailing list