Skip to content

Commit

Permalink
squash! egl: add EGL_ANDROID_native_fence_sync
Browse files Browse the repository at this point in the history
Skip eglCreateSync for EGL_SYNC_NATIVE_FENCE_ANDROID too when no current
context is set.
  • Loading branch information
Rafael Antognolli committed Nov 1, 2016
1 parent 17f16c7 commit c637f1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/egl/main/eglapi.c
Expand Up @@ -1610,7 +1610,8 @@ _eglCreateSync(_EGLDisplay *disp, EGLenum type, const EGLAttrib *attrib_list,
* (i.e., eglGetCurrentContext returns EGL_NO_CONTEXT ), an EGL_BAD_MATCH
* error is generated.
*/
if (!ctx && type == EGL_SYNC_FENCE_KHR)
if (!ctx &&
(type == EGL_SYNC_FENCE_KHR || type == EGL_SYNC_NATIVE_FENCE_ANDROID))
RETURN_EGL_ERROR(disp, EGL_BAD_MATCH, EGL_NO_SYNC_KHR);

/* return an error if the client API doesn't support GL_OES_EGL_sync */
Expand Down

0 comments on commit c637f1c

Please sign in to comment.