From: Kyle Brenneman Date: Mon, 12 Sep 2016 21:35:22 +0000 (-0400) Subject: egl: Factor out _eglWaitClientCommon X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82a2e2cb5024c37a1779594320f23f225a83c79d;p=mesa.git egl: Factor out _eglWaitClientCommon Reviewed-by: Adam Jackson Reviewed-by: Emil Velikov --- diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index fac2d189804..a74e5e4709c 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -1081,8 +1081,8 @@ eglCopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target) } -EGLBoolean EGLAPIENTRY -eglWaitClient(void) +static EGLBoolean +_eglWaitClientCommon(void) { _EGLContext *ctx = _eglGetCurrentContext(); _EGLDisplay *disp; @@ -1108,12 +1108,17 @@ eglWaitClient(void) RETURN_EGL_EVAL(disp, ret); } +EGLBoolean EGLAPIENTRY +eglWaitClient(void) +{ + return _eglWaitClientCommon(); +} EGLBoolean EGLAPIENTRY eglWaitGL(void) { /* Since we only support OpenGL and GLES, eglWaitGL is equivalent to eglWaitClient. */ - return eglWaitClient(); + return _eglWaitClientCommon(); }