(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|MESA]_EGL_sync. */
- if (ctx && (ctx->Resource.Display != disp ||
- (ctx->ClientAPI != EGL_OPENGL_ES_API &&
- ctx->ClientAPI != EGL_OPENGL_API)))
+ if (ctx && (ctx->Resource.Display != disp))
RETURN_EGL_ERROR(disp, EGL_BAD_MATCH, EGL_NO_SYNC_KHR);
switch (type) {
_EGL_CHECK_SYNC(disp, s, EGL_FALSE);
assert(disp->Extensions.KHR_wait_sync);
- /* return an error if the client API doesn't support GL_[OES|MESA]_EGL_sync. */
- if (ctx == EGL_NO_CONTEXT ||
- (ctx->ClientAPI != EGL_OPENGL_ES_API &&
- ctx->ClientAPI != EGL_OPENGL_API))
+ if (ctx == EGL_NO_CONTEXT)
RETURN_EGL_ERROR(disp, EGL_BAD_MATCH, EGL_FALSE);
/* the API doesn't allow any flags yet */
}
*ctx = _eglLookupContext(context, *disp);
- if (!*ctx ||
- ((*ctx)->ClientAPI != EGL_OPENGL_API &&
- (*ctx)->ClientAPI != EGL_OPENGL_ES_API)) {
+ if (!*ctx) {
_eglUnlockDisplay(*disp);
return MESA_GLINTEROP_INVALID_CONTEXT;
}