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:
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -37,6 +37,9 @@
|
||||
|
||||
struct gl_context;
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_LineWidth_no_error(GLfloat width);
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_LineWidth( GLfloat width );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user