mesa: add KHR_no_error support to glLineWidth()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Jul 2017 08:24:12 +0000 (10:24 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 2 Aug 2017 10:54:31 +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/lines.c
src/mesa/main/lines.h

index ca514fdd0f9e5dfb27c2ffa9c78217723e163159..8c4277b984b04e560e26a7e5c460a3905380c8a4 100644 (file)
         <glx rop="94"/>
     </function>
 
-    <function name="LineWidth" es1="1.0" es2="2.0">
+    <function name="LineWidth" es1="1.0" es2="2.0" no_error="true">
         <param name="width" type="GLfloat"/>
         <glx rop="95"/>
     </function>
index 04b3e2ff126cfa15a8d4962e3e55b8fdce409a2c..78d3a7729b9b2f96733de1e284c0e659731ee7b4 100644 (file)
@@ -76,6 +76,14 @@ line_width(struct gl_context *ctx, GLfloat width, bool no_error)
 }
 
 
+void GLAPIENTRY
+_mesa_LineWidth_no_error(GLfloat width)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   line_width(ctx, width, true);
+}
+
+
 void GLAPIENTRY
 _mesa_LineWidth(GLfloat width)
 {
index 9a16069a6d5268931a32d612310f175f5dacd7d6..78a405cbac427e5e3244cfa59d826b4637e301b8 100644 (file)
@@ -37,6 +37,9 @@
 
 struct gl_context;
 
+void GLAPIENTRY
+_mesa_LineWidth_no_error(GLfloat width);
+
 extern void GLAPIENTRY
 _mesa_LineWidth( GLfloat width );