es2tri: es2tri.c:337: make_x_window: Assertion `val == 2' failed
es2tri crashed while running on Ubuntu, with to below error message.
es2tri: es2tri.c:337: make_x_window: Assertion `val == 2' failed
As per EGL spec: The context returned must be the specified version, or a later version which is backwards compatible with that version. Querying EGL_CONTEXT_CLIENT_VERSION returns the version of the client API this context actually supports (which may differ from the version specified at context creation time).
But es2tri expecting same version in return while eglQueryContext() at line 337 https://gitlab.freedesktop.org/mesa/demos/-/blob/master/src/egl/opengles2/es2tri.c # Line 337
es2tri should check for specified or higher version in return. Instead of assert(val == 2) condition should be assert(val >= 2).