From dcd1e3b87a90c7178bf7f6090ed683c6a797cc80 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 15 Feb 2022 13:02:57 +0200 Subject: [PATCH] kwinglutils: Drop GLRenderTarget::setTextureDirty() It's effectively unused and removing it allows us to get rid of GLTexture field, which is very useful for abstracting the concept of a "render target" across OpenGL and QPainter backends. --- src/libkwineffects/kwinglutils.cpp | 2 -- src/libkwineffects/kwinglutils.h | 4 ---- 2 files changed, 6 deletions(-) diff --git a/src/libkwineffects/kwinglutils.cpp b/src/libkwineffects/kwinglutils.cpp index 201afddef2..511af09664 100644 --- a/src/libkwineffects/kwinglutils.cpp +++ b/src/libkwineffects/kwinglutils.cpp @@ -964,8 +964,6 @@ void GLRenderTarget::pushRenderTargets(QStack targets) GLRenderTarget* GLRenderTarget::popRenderTarget() { GLRenderTarget* ret = s_renderTargets.pop(); - ret->setTextureDirty(); - if (!s_renderTargets.isEmpty()) { s_renderTargets.top()->bind(); } diff --git a/src/libkwineffects/kwinglutils.h b/src/libkwineffects/kwinglutils.h index 45b98184fd..1bc8940a40 100644 --- a/src/libkwineffects/kwinglutils.h +++ b/src/libkwineffects/kwinglutils.h @@ -425,10 +425,6 @@ public: return mValid; } - void setTextureDirty() { - mTexture.setDirty(); - } - static void initStatic(); static bool supported() { return sSupported;