summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-13 18:56:21 +0000
committeronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-13 18:56:21 +0000
commit29a101999964cf880ba30d67345f11500f732a33 (patch)
treedc68098cd2702f50ccfe4c3a2d80b90977d33dc6
parent47ae0e5fa89925c584d57d7cb4b99cbd233f8e21 (diff)
downloadmarex-dev-29a101999964cf880ba30d67345f11500f732a33.tar.gz
marex-dev-29a101999964cf880ba30d67345f11500f732a33.tar.bz2
beryl-plugins: 3d: paint only windows of current viewport
git-svn-id: file:///beryl/trunk@4038 d7aaf104-2d23-0410-ae22-9d23157bf5a3
-rw-r--r--beryl-plugins/src/3d.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/beryl-plugins/src/3d.c b/beryl-plugins/src/3d.c
index a73bd55..00b9bc1 100644
--- a/beryl-plugins/src/3d.c
+++ b/beryl-plugins/src/3d.c
@@ -567,12 +567,14 @@ tdPaintWindow(CompWindow * w,
return TRUE;
}
-
CompTransform wTransform = *transform;
if (tdw->currentZ != 0.0f)
{
+ if (!IS_IN_VIEWPORT(w, 0))
+ return TRUE;
+
mask |= PAINT_WINDOW_TRANSFORMED_MASK;
if (mask & PAINT_WINDOW_FRONT_TO_BACK_MASK)
@@ -585,7 +587,8 @@ tdPaintWindow(CompWindow * w,
if (wasCulled && DISABLE_BACKFACE_CULLING)
glDisable(GL_CULL_FACE);
- if (!IS_IN_VIEWPORT(w, 0) && FALSE)
+ /*
+ if (!IS_IN_VIEWPORT(w, 0))
{
float angle = 360 / tds->currentViewportNum;
@@ -607,6 +610,7 @@ tdPaintWindow(CompWindow * w,
tds->xMove - width, 0.0f, 0.0f);
}
}
+ */
if ((LEFT_VIEWPORT(w) != RIGHT_VIEWPORT(w)) && !IPCS_GetBool(IPCS_OBJECT(w->screen),tds->unfoldedAtom))
{