egl: Remove a bogus restriction from eglMakeCurrent
The comment here is from the EGL_MESA_configless_context era, and maybe that was true, but EGL_KHR_no_config_context has no such restriction. The only restriction is that both surfaces be compatible with the context, but a no-config context is defined to be compatible with any surface. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18824>
This commit is contained in:
@@ -785,11 +785,6 @@ _eglCheckMakeCurrent(_EGLContext *ctx, _EGLSurface *draw, _EGLSurface *read)
|
||||
/* Otherwise we must be using the EGL_KHR_no_config_context
|
||||
* extension */
|
||||
assert(disp->Extensions.KHR_no_config_context);
|
||||
|
||||
/* The extension doesn't permit binding draw and read buffers with
|
||||
* differing contexts */
|
||||
if (draw && read && draw->Config != read->Config)
|
||||
return _eglError(EGL_BAD_MATCH, "eglMakeCurrent");
|
||||
}
|
||||
|
||||
return EGL_TRUE;
|
||||
|
Reference in New Issue
Block a user