mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
egl: Factor out _eglWaitClientCommon
Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
8cc3d9855f
commit
82a2e2cb50
1 changed files with 8 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue