mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
81f3a6b29a
commit
667a6e8122
3 changed files with 12 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue