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:
@@ -2291,7 +2291,7 @@
|
|||||||
<glx rop="126"/>
|
<glx rop="126"/>
|
||||||
</function>
|
</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"/>
|
<param name="mask" type="GLbitfield"/>
|
||||||
<glx rop="127"/>
|
<glx rop="127"/>
|
||||||
</function>
|
</function>
|
||||||
|
@@ -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
|
void GLAPIENTRY
|
||||||
_mesa_Clear(GLbitfield mask)
|
_mesa_Clear(GLbitfield mask)
|
||||||
{
|
{
|
||||||
|
@@ -43,6 +43,8 @@ _mesa_ClearColorIiEXT(GLint r, GLint g, GLint b, GLint a);
|
|||||||
extern void GLAPIENTRY
|
extern void GLAPIENTRY
|
||||||
_mesa_ClearColorIuiEXT(GLuint r, GLuint g, GLuint b, GLuint a);
|
_mesa_ClearColorIuiEXT(GLuint r, GLuint g, GLuint b, GLuint a);
|
||||||
|
|
||||||
|
void GLAPIENTRY
|
||||||
|
_mesa_Clear_no_error(GLbitfield mask);
|
||||||
|
|
||||||
extern void GLAPIENTRY
|
extern void GLAPIENTRY
|
||||||
_mesa_Clear( GLbitfield mask );
|
_mesa_Clear( GLbitfield mask );
|
||||||
|
Reference in New Issue
Block a user