summaryrefslogtreecommitdiff
path: root/plugins/compiztoolbox/src/compiztoolbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/compiztoolbox/src/compiztoolbox.cpp')
-rw-r--r--plugins/compiztoolbox/src/compiztoolbox.cpp8
1 files changed, 8 insertions, 0 deletions
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)