summaryrefslogtreecommitdiff
path: root/plugins/compiztoolbox
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/compiztoolbox')
-rw-r--r--plugins/compiztoolbox/include/compiztoolbox/compiztoolbox.h1
-rw-r--r--plugins/compiztoolbox/src/compiztoolbox.cpp8
2 files changed, 9 insertions, 0 deletions
diff --git a/plugins/compiztoolbox/include/compiztoolbox/compiztoolbox.h b/plugins/compiztoolbox/include/compiztoolbox/compiztoolbox.h
index b8e29c4..8bd9d66 100644
--- a/plugins/compiztoolbox/include/compiztoolbox/compiztoolbox.h
+++ b/plugins/compiztoolbox/include/compiztoolbox/compiztoolbox.h
@@ -83,6 +83,7 @@ class BaseSwitchScreen
virtual void handleSelectionChange (bool toNext, int nextIdx) {}
virtual void getMinimizedAndMatch (bool &minimizedOption,
CompMatch *&matchOption);
+ virtual bool getMipmap () { return false; }
CompositeScreen *cScreen;
GLScreen *gScreen;
diff --git a/plugins/compiztoolbox/src/compiztoolbox.cpp b/plugins/compiztoolbox/src/compiztoolbox.cpp
index f65800e..2a4dabf 100644
--- a/plugins/compiztoolbox/src/compiztoolbox.cpp
+++ b/plugins/compiztoolbox/src/compiztoolbox.cpp
@@ -391,6 +391,7 @@ BaseSwitchWindow::paintThumb (const GLWindowPaintAttrib &attrib,
if (iconMode != ShowIconOnly)
{
+ GLenum filter;
GLMatrix wTransform (transform);
int ww, wh;
int addWindowGeometryIndex =
@@ -441,6 +442,11 @@ BaseSwitchWindow::paintThumb (const GLWindowPaintAttrib &attrib,
glPushMatrix ();
glLoadMatrixf (wTransform.getMatrix ());
+ filter = gScreen->textureFilter ();
+
+ if (baseScreen->getMipmap ())
+ gScreen->setTextureFilter (GL_LINEAR_MIPMAP_LINEAR);
+
/* XXX: replacing the addWindowGeometry function like this is
very ugly but necessary until the vertex stage has been made
fully pluggable. */
@@ -448,6 +454,8 @@ BaseSwitchWindow::paintThumb (const GLWindowPaintAttrib &attrib,
gWindow->glDraw (wTransform, fragment, infiniteRegion, mask);
gWindow->glAddGeometrySetCurrentIndex (addWindowGeometryIndex);
+ gScreen->setTextureFilter (filter);
+
glPopMatrix ();
if (iconMode != HideIcon)