From: Samuel Pitoiset Date: Tue, 18 Jul 2017 09:27:00 +0000 (+0200) Subject: mesa: add KHR_no_error support to glDeleteSync() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=667a6e812283fa3f2db84ca06197cdf6f58f0c6d;p=mesa.git mesa: add KHR_no_error support to glDeleteSync() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mapi/glapi/gen/ARB_sync.xml b/src/mapi/glapi/gen/ARB_sync.xml index d6412d3bf4c..8ffd9c4c0c2 100644 --- a/src/mapi/glapi/gen/ARB_sync.xml +++ b/src/mapi/glapi/gen/ARB_sync.xml @@ -50,7 +50,7 @@ - + diff --git a/src/mesa/main/syncobj.c b/src/mesa/main/syncobj.c index 6f7bfab42d3..84f920bf147 100644 --- a/src/mesa/main/syncobj.c +++ b/src/mesa/main/syncobj.c @@ -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) { diff --git a/src/mesa/main/syncobj.h b/src/mesa/main/syncobj.h index 7d1bed530c8..79cb0d26adb 100644 --- a/src/mesa/main/syncobj.h +++ b/src/mesa/main/syncobj.h @@ -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);