https://bugs.kde.org/show_bug.cgi?id=415798
Vlad Zahorodnii <vlad.zahorod...@kde.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Latest Commit| |https://invent.kde.org/plas | |ma/kwin/commit/292335beacfc | |07cca2d1db99e6ab01599024f66 | |4 Status|ASSIGNED |RESOLVED --- Comment #17 from Vlad Zahorodnii <vlad.zahorod...@kde.org> --- Git commit 292335beacfc07cca2d1db99e6ab01599024f664 by Vlad Zahorodnii. Committed on 19/10/2020 at 09:13. Pushed by vladz into branch 'master'. Introduce persistent global share context On Wayland, internal windows that use OpenGL are rendered into fbos, which are later handed over to kwin. In order to achieve that, our QPA creates OpenGL contexts that share resources with the scene's context. The problems start when compositing has been restarted. If user changes any compositing settings, the underlying render backend will be reinitialized and with it, the scene's context will be destroyed. Thus, we no longer can accept framebuffer objects from internal windows. This change addresses the framebuffer object sharing problem by adding a so called global share context. It persists throughout the lifetime of kwin. It can never be made current. The scene context and all contexts created in our QPA share resources with it. Therefore we can destroy the scene OpenGL context without affecting OpenGL contexts owned by internal windows, e.g. the outline visual or tabbox. It's worth noting that Qt provides a way to create a global share context. But for our purposes it's not suitable since the share context must be known when QGuiApplication attempts to instantiate a QOpenGLContext object. At that moment, the backend is not initialized and thus the EGLDisplay is not available yet. M +10 -0 platform.cpp M +14 -0 platform.h M +59 -7 platformsupport/scenes/opengl/abstract_egl_backend.cpp M +1 -1 platformsupport/scenes/opengl/abstract_egl_backend.h M +1 -1 plugins/qpa/eglplatformcontext.cpp M +5 -0 plugins/qpa/integration.cpp https://invent.kde.org/plasma/kwin/commit/292335beacfc07cca2d1db99e6ab01599024f664 -- You are receiving this mail because: You are watching all bug changes.