mesa: add KHR_no_error support for glClear()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Samuel Pitoiset
2017-06-26 17:46:39 +02:00
parent 34e8d0e4ba
commit e529ade0ea
3 changed files with 11 additions and 1 deletions

View File

@@ -2291,7 +2291,7 @@
<glx rop="126"/>
</function>
<function name="Clear" es1="1.0" es2="2.0">
<function name="Clear" es1="1.0" es2="2.0" no_error="true">
<param name="mask" type="GLbitfield"/>
<glx rop="127"/>
</function>

View File

@@ -223,6 +223,14 @@ clear(struct gl_context *ctx, GLbitfield mask, bool no_error)
}
void GLAPIENTRY
_mesa_Clear_no_error(GLbitfield mask)
{
GET_CURRENT_CONTEXT(ctx);
clear(ctx, mask, true);
}
void GLAPIENTRY
_mesa_Clear(GLbitfield mask)
{

View File

@@ -43,6 +43,8 @@ _mesa_ClearColorIiEXT(GLint r, GLint g, GLint b, GLint a);
extern void GLAPIENTRY
_mesa_ClearColorIuiEXT(GLuint r, GLuint g, GLuint b, GLuint a);
void GLAPIENTRY
_mesa_Clear_no_error(GLbitfield mask);
extern void GLAPIENTRY
_mesa_Clear( GLbitfield mask );