diff --git a/src/platformsupport/scenes/opengl/abstract_egl_backend.cpp b/src/platformsupport/scenes/opengl/abstract_egl_backend.cpp index 7ecbff2e18..d7c09fce82 100644 --- a/src/platformsupport/scenes/opengl/abstract_egl_backend.cpp +++ b/src/platformsupport/scenes/opengl/abstract_egl_backend.cpp @@ -54,8 +54,6 @@ AbstractEglBackend::~AbstractEglBackend() EGLContext AbstractEglBackend::ensureGlobalShareContext() { - const EGLDisplay eglDisplay = kwinApp()->platform()->sceneEglDisplay(); - if (kwinApp()->platform()->sceneEglGlobalShareContext() != EGL_NO_CONTEXT) { return kwinApp()->platform()->sceneEglGlobalShareContext(); }