From 6e0cd291327a295714effbdd730068ae8843ba11 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 26 Jun 2017 14:44:43 +0200 Subject: mesa: add KHR_no_error support for glClientWaitSync() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mesa/main/syncobj.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/mesa/main/syncobj.c') diff --git a/src/mesa/main/syncobj.c b/src/mesa/main/syncobj.c index ce9c99725ea..1347a0fcc4b 100644 --- a/src/mesa/main/syncobj.c +++ b/src/mesa/main/syncobj.c @@ -336,6 +336,16 @@ client_wait_sync(struct gl_context *ctx, struct gl_sync_object *syncObj, } +GLenum GLAPIENTRY +_mesa_ClientWaitSync_no_error(GLsync sync, GLbitfield flags, GLuint64 timeout) +{ + GET_CURRENT_CONTEXT(ctx); + + struct gl_sync_object *syncObj = _mesa_get_and_ref_sync(ctx, sync, true); + return client_wait_sync(ctx, syncObj, flags, timeout); +} + + GLenum GLAPIENTRY _mesa_ClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) { -- cgit v1.2.3