mesa: add KHR_no_error support to glPolygonMode()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 27 Jul 2017 10:16:44 +0000 (12:16 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 2 Aug 2017 10:54:32 +0000 (12:54 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/gl_API.xml
src/mesa/main/polygon.c
src/mesa/main/polygon.h

index 18a78dc315b10453a698c00fff67c892d418b021..8e50a0150698a62045bbb585cd2b3f202770f0ff 100644 (file)
         <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"/>
index 98a9118fd2083ffec6922494adc00a150a35ce5e..44d943e930b7d08ee1ae9837988dcb1b956b060d 100644 (file)
@@ -220,6 +220,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)
 {
index 39b7a73be20a3db8a2afdf292b23087923a11403..1b8186892a36236b81d38d0e9056aef50d65762d 100644 (file)
@@ -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 );