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.
This commit is contained in:
Vlad Zahorodnii 2022-02-15 13:02:57 +02:00
parent 436187762e
commit dcd1e3b87a
2 changed files with 0 additions and 6 deletions

View file

@ -964,8 +964,6 @@ void GLRenderTarget::pushRenderTargets(QStack <GLRenderTarget*> targets)
GLRenderTarget* GLRenderTarget::popRenderTarget() GLRenderTarget* GLRenderTarget::popRenderTarget()
{ {
GLRenderTarget* ret = s_renderTargets.pop(); GLRenderTarget* ret = s_renderTargets.pop();
ret->setTextureDirty();
if (!s_renderTargets.isEmpty()) { if (!s_renderTargets.isEmpty()) {
s_renderTargets.top()->bind(); s_renderTargets.top()->bind();
} }

View file

@ -425,10 +425,6 @@ public:
return mValid; return mValid;
} }
void setTextureDirty() {
mTexture.setDirty();
}
static void initStatic(); static void initStatic();
static bool supported() { static bool supported() {
return sSupported; return sSupported;