mesa: add KHR_no_error support to glDeleteSync()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
<return type="GLboolean"/>
|
||||
</function>
|
||||
|
||||
<function name="DeleteSync" es2="3.0">
|
||||
<function name="DeleteSync" es2="3.0" no_error="true">
|
||||
<param name="sync" type="GLsync"/>
|
||||
</function>
|
||||
|
||||
|
||||
@@ -255,6 +255,14 @@ delete_sync(struct gl_context *ctx, GLsync sync, bool no_error)
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_DeleteSync_no_error(GLsync sync)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
delete_sync(ctx, sync, true);
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_DeleteSync(GLsync sync)
|
||||
{
|
||||
|
||||
@@ -57,6 +57,9 @@ _mesa_unref_sync_object(struct gl_context *ctx, struct gl_sync_object *syncObj,
|
||||
extern GLboolean GLAPIENTRY
|
||||
_mesa_IsSync(GLsync sync);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_DeleteSync_no_error(GLsync sync);
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_DeleteSync(GLsync sync);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user