mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 20:30:30 +01:00
mesa: add KHR_no_error support to glPolygonMode()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
1b603f0985
commit
dd4e817b7f
3 changed files with 12 additions and 1 deletions
|
|
@ -2097,7 +2097,7 @@
|
|||
<glx rop="100"/>
|
||||
</function>
|
||||
|
||||
<function name="PolygonMode">
|
||||
<function name="PolygonMode" no_error="true">
|
||||
<param name="face" type="GLenum"/>
|
||||
<param name="mode" type="GLenum"/>
|
||||
<glx rop="101"/>
|
||||
|
|
|
|||
|
|
@ -220,6 +220,14 @@ polygon_mode(struct gl_context *ctx, GLenum face, GLenum mode, bool no_error)
|
|||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_PolygonMode_no_error(GLenum face, GLenum mode)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
polygon_mode(ctx, face, mode, true);
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_PolygonMode(GLenum face, GLenum mode)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -51,6 +51,9 @@ _mesa_FrontFace_no_error(GLenum mode);
|
|||
extern void GLAPIENTRY
|
||||
_mesa_FrontFace(GLenum mode);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_PolygonMode_no_error(GLenum face, GLenum mode);
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_PolygonMode( GLenum face, GLenum mode );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue