kwin_x11 works perfectly with KWIN_COMPOSE=O2 (GLX) and everything works, but if I use KWIN_COMPOSE=O2ES (EGL), it fails with "Invalid QOpenGLContext::globalShareContext()". Operating System: Linux KDE Plasma Version: 5.25.2 KDE Frameworks Version: 5.96.0 Qt Version: 5.15.5 Kernel Version: 5.18.9 (64-bit) Graphics Processor: NVIDIA GeForce RTX 2070 with Max-Q Design/PCIe/SSE2 kwin_core: Compositing forced to OpenGL mode by environment variable kwin_core: Forcing EGL native interface as OpenGL ES requested through KWIN_COMPOSE environment variable. kwin_core: Attempting to load the OpenGL scene kwin_platform_x11_standalone: Global share context format: QSurfaceFormat(version 4.6, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions|ResetNotification), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 0, stencilBufferSize 0, samples -1, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::CompatibilityProfile) kwin_scene_opengl: Creating the OpenGL rendering failed: "Invalid QOpenGLContext::globalShareContext()" kwin_core: Starting without compositing... Any idea? Thanks.
Note that "KWIN_COMPOSE=O2ES" means you're forcing KWin into OpenGLES rendering, which happens to also use EGL as platform layer but has a lot more impact than just the platform layer. The correct environment variable for selecting EGL is `KWIN_OPENGL_INTERFACE=egl`.
(In reply to Arjen Hiemstra from comment #1) > Note that "KWIN_COMPOSE=O2ES" means you're forcing KWin into OpenGLES > rendering, which happens to also use EGL as platform layer but has a lot > more impact than just the platform layer. The correct environment variable > for selecting EGL is `KWIN_OPENGL_INTERFACE=egl`. I tried just with "KWIN_OPENGL_INTERFACE=egl`" and I got the same output: kwin_core: Forcing EGL native interface through environment variable kwin_core: Attempting to load the OpenGL scene kwin_platform_x11_standalone: Global share context format: QSurfaceFormat(version 4.6, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions|ResetNotification), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 0, stencilBufferSize 0, samples -1, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::CompatibilityProfile) kwin_scene_opengl: Creating the OpenGL rendering failed: "Invalid QOpenGLContext::globalShareContext()" kwin_core: Starting without compositing...
I was able to run X11 EGL with following envs: QT_XCB_GL_INTEGRATION=xcb_egl KWIN_OPENGL_INTERFACE=egl
(In reply to serfreeman1337 from comment #3) > I was able to run X11 EGL with following envs: > > QT_XCB_GL_INTEGRATION=xcb_egl > KWIN_OPENGL_INTERFACE=egl I tested here with those variables and it seems to run using EGL, but I get the following repeating errors: [7161:7320:1126/135150.233476:ERROR:gl_context_egl.cc(259)] eglCreateContext failed with error EGL_BAD_CONTEXT [7161:7320:1126/135150.233482:ERROR:gpu_channel_manager.cc(753)] ContextResult::kFatalFailure: Failed to create shared context for virtualization. [7161:7320:1126/135150.233484:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context [7161:7320:1126/135150.233487:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub and I noticed a high CPU usage all the time and the panel is missing.
Clsoing this one, since the issue doesn't happen with Plasma 6.