summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglapi.c
diff options
context:
space:
mode:
authorKyle Brenneman <kbrenneman@nvidia.com>2016-09-12 17:35:22 -0400
committerAdam Jackson <ajax@redhat.com>2016-09-14 11:45:58 -0400
commit82a2e2cb5024c37a1779594320f23f225a83c79d (patch)
tree74b92ffd2555cc8783a9edc1df989a36a429b5f2 /src/egl/main/eglapi.c
parent8cc3d9855f94cd0f2274a1831bc6fa8912ddea9c (diff)
downloadexternal_mesa3d-82a2e2cb5024c37a1779594320f23f225a83c79d.zip
external_mesa3d-82a2e2cb5024c37a1779594320f23f225a83c79d.tar.gz
external_mesa3d-82a2e2cb5024c37a1779594320f23f225a83c79d.tar.bz2
egl: Factor out _eglWaitClientCommon
Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'src/egl/main/eglapi.c')
-rw-r--r--src/egl/main/eglapi.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index fac2d18..a74e5e4 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();
}