From 813d861ea691ddb47f3b4dfcc60f3cb642adccca Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 21 Jan 2022 11:56:53 +0200 Subject: [PATCH] Fix -Wunused-variable --- src/platformsupport/scenes/opengl/abstract_egl_backend.cpp | 2 -- 1 file changed, 2 deletions(-) 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(); }