Fix -Wunused-variable

This commit is contained in:
Vlad Zahorodnii 2022-01-21 11:56:53 +02:00
parent 354857e9f1
commit 813d861ea6

View file

@ -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();
}