mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
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:
parent
7327cb0602
commit
5c27de1ae1
3 changed files with 12 additions and 1 deletions
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue