From 5c27de1ae145e488f643ed321d743826c95f3112 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 20 Jul 2017 10:24:12 +0200 Subject: [PATCH] mesa: add KHR_no_error support to glLineWidth() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- 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 ca514fdd0f9..8c4277b984b 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -2059,7 +2059,7 @@ - + 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 @@ -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) { 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 ); -- 2.30.2