aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-07-20 10:24:12 +0200
committerSamuel Pitoiset <[email protected]>2017-08-02 12:54:31 +0200
commit5c27de1ae145e488f643ed321d743826c95f3112 (patch)
treef2b58b1881a8cb8e4348b1a1c6c0360a30190be3
parent7327cb0602e4527f7cdb1dc99667014e6e41a297 (diff)
mesa: add KHR_no_error support to glLineWidth()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
-rw-r--r--src/mapi/glapi/gen/gl_API.xml2
-rw-r--r--src/mesa/main/lines.c8
-rw-r--r--src/mesa/main/lines.h3
3 files changed, 12 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index ca514fdd0f9..8c4277b984b 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 04b3e2ff126..78d3a7729b9 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 9a16069a6d5..78a405cbac4 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 );