GtkGLArea would receive eglMakeCurrent failed
Steps to reproduce
I would upload the demo later(I need to port it from gtkmm to gtk), but this application must be running under a platform with hardware decoder. I am not sure whether I can make this case more simply.
Current behavior
The demo would render an EGLImage into TEXTURE0(GL_TEXTURE_EXTERNAL_OES) in render signal's callback. And I use the on_tick callback to queue_render() Then I would receive many warning from gtk_gl_area_make_current() in gtk_gl_area_draw() talk about eglMakeCurrent();
But I think the EGLImage uploading is successful(I am not sure whether my GLSL program work), as the GTK+ would use TEXTURE0 in gdk_cairo_draw_from_gl(), I can see the context of that EGLImage
Expected outcome
I think GTK+ would never release the EGLContext, after the _draw() or render() callback, the context should be released https://www.khronos.org/registry/EGL/sdk/docs/man/html/eglMakeCurrent.xhtml To release the current context without assigning a new one, set context to EGL_NO_CONTEXT and set draw and read to EGL_NO_SURFACE .
Or we do not need to makeCurrent so many times.
Version information
yocto GTK 3.24.8 weston 8.0.0 mesa 20