[Mesa-dev] [PATCH 079/101] mesa: add KHR_no_error support to glLineWidth()

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri Jul 21 17:40:28 UTC 2017


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/mapi/glapi/gen/gl_API.xml | 2 +-
 src/mesa/main/lines.c         | 8 ++++++++
 src/mesa/main/lines.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 ca514fdd0f..8c4277b984 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -2059,7 +2059,7 @@
         <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>
diff --git a/src/mesa/main/lines.c b/src/mesa/main/lines.c
index 6586bb6ebf..c6931eca69 100644
--- a/src/mesa/main/lines.c
+++ b/src/mesa/main/lines.c
@@ -77,6 +77,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)
 {
    GET_CURRENT_CONTEXT(ctx);
diff --git a/src/mesa/main/lines.h b/src/mesa/main/lines.h
index fa15e50ac9..bfb82b01e8 100644
--- a/src/mesa/main/lines.h
+++ b/src/mesa/main/lines.h
@@ -37,6 +37,9 @@
 
 struct gl_context;
 
+void GLAPIENTRY
+_mesa_LineWidth_no_error(GLfloat width);
+
 extern void GLAPIENTRY
 _mesa_LineWidth( GLfloat width );
 
-- 
2.13.3



More information about the mesa-dev mailing list