mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
mesa: add KHR_no_error support for glStencilFunc()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
db967dcb05
commit
e6659c560a
3 changed files with 12 additions and 1 deletions
|
|
@ -2556,7 +2556,7 @@
|
|||
<glx rop="161"/>
|
||||
</function>
|
||||
|
||||
<function name="StencilFunc" es1="1.0" es2="2.0">
|
||||
<function name="StencilFunc" es1="1.0" es2="2.0" no_error="true">
|
||||
<param name="func" type="GLenum"/>
|
||||
<param name="ref" type="GLint"/>
|
||||
<param name="mask" type="GLuint"/>
|
||||
|
|
|
|||
|
|
@ -229,6 +229,14 @@ stencil_func(struct gl_context *ctx, GLenum func, GLint ref, GLuint mask)
|
|||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_StencilFunc_no_error(GLenum func, GLint ref, GLuint mask)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
stencil_func(ctx, func, ref, mask);
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_StencilFunc(GLenum func, GLint ref, GLuint mask)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -41,6 +41,9 @@ extern void GLAPIENTRY
|
|||
_mesa_ClearStencil( GLint s );
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_StencilFunc_no_error(GLenum func, GLint ref, GLuint mask);
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_StencilFunc(GLenum func, GLint ref, GLuint mask);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue