mesa: add KHR_no_error support to glLineWidth()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Samuel Pitoiset 2017-07-20 10:24:12 +02:00
parent 7327cb0602
commit 5c27de1ae1
3 changed files with 12 additions and 1 deletions

View file

@ -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>

View 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)
{

View file

@ -37,6 +37,9 @@
struct gl_context;
void GLAPIENTRY
_mesa_LineWidth_no_error(GLfloat width);
extern void GLAPIENTRY
_mesa_LineWidth( GLfloat width );