summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/miniview.c
diff options
context:
space:
mode:
authorracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-03 01:01:42 +0000
committerracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-03 01:01:42 +0000
commit776d35cfb73fd1d4fbe2afbab13ac3008b874394 (patch)
tree3c81100f556cbf021dbb804de6b720e1f72333ba /beryl-plugins/src/miniview.c
parent4b731dbb235d5bf22d4df015bafaa51729f0cf9d (diff)
downloadmarex-dev-776d35cfb73fd1d4fbe2afbab13ac3008b874394.tar.gz
marex-dev-776d35cfb73fd1d4fbe2afbab13ac3008b874394.tar.bz2
Mipmap for miniviews
git-svn-id: file:///beryl/trunk@3599 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/miniview.c')
-rw-r--r--beryl-plugins/src/miniview.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/beryl-plugins/src/miniview.c b/beryl-plugins/src/miniview.c
index f824d32..76c3ae6 100644
--- a/beryl-plugins/src/miniview.c
+++ b/beryl-plugins/src/miniview.c
@@ -251,6 +251,9 @@ static void miniviewPaintTransformedScreen(CompScreen * s,
if (ms->showing )
{
//mask &= PAINT_SCREEN_TRANSFORMED_MASK;
+ int oldFilter = s->display->textureFilter;
+ s->display->textureFilter = GL_LINEAR_MIPMAP_LINEAR;
+
glPushMatrix();
if (ms->zCam > -ms->size)
ms->zCam -= .075;
@@ -280,6 +283,7 @@ static void miniviewPaintTransformedScreen(CompScreen * s,
move++;
}
(*s->paintTransformedScreen) (s, sa, region, output, mask);
+ s->display->textureFilter = oldFilter;
moveScreenViewport(s,-move,0,FALSE);
@@ -287,6 +291,7 @@ static void miniviewPaintTransformedScreen(CompScreen * s,
}
if (ms->expoMode)
{
+
clearTargetOutput(s->display, GL_COLOR_BUFFER_BIT);
int oldFilter = s->filter[SCREEN_TRANS_FILTER];