kwinglutils: Deprecate GLTexture dirty state tracking

It's currently being used only by the X11 standalone backend. We should
either port the X11 backend to manual dirty state tracking or waiting
until it gets dropped. The main motivation for getting rid of the dirty
state tracking in the GLTexture is that it keeps kwin open for
alternative opengl wrappers, e.g. QOpenGL, and it simplifies GLTexture
code.
This commit is contained in:
Vlad Zahorodnii 2022-02-15 12:58:43 +02:00
parent e9af67af3e
commit 436187762e

View file

@ -117,10 +117,13 @@ public:
* Make the texture fully transparent * Make the texture fully transparent
*/ */
void clear(); void clear();
/**
* @deprecated track modifications to the texture yourself
*/
void setDirty();
bool isDirty() const; bool isDirty() const;
void setFilter(GLenum filter); void setFilter(GLenum filter);
void setWrapMode(GLenum mode); void setWrapMode(GLenum mode);
void setDirty();
void generateMipmaps(); void generateMipmaps();