summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-09-23 13:52:28 +0200
committerDanny Baumann <dannybaumann@web.de>2007-09-23 13:52:28 +0200
commit5c785659d58b1b3e826f25a3a4f49d761f4ac1f0 (patch)
treeb08c8f1b8d7f0dc758f2c1256a3e068c4ac9ff38
parentfbff83f3a776b6de42123a1dd657b629e3e51a02 (diff)
download3d-5c785659d58b1b3e826f25a3a4f49d761f4ac1f0.tar.gz
3d-5c785659d58b1b3e826f25a3a4f49d761f4ac1f0.tar.bz2
Properly set PAINT_WINDOW_TRANSFORMED_MASK when painting the window translated.
-rw-r--r--3d.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/3d.c b/3d.c
index 4834f31..7296d25 100644
--- a/3d.c
+++ b/3d.c
@@ -235,11 +235,12 @@ tdPaintWindowWithDepth (CompWindow *w,
{
glEnable (GL_CULL_FACE);
glCullFace (GL_FRONT);
-
+
matrixTranslate (&wTransform, 0.0f, 0.0f, wwidth);
UNWRAP (tds, s, paintWindow);
- status = (*s->paintWindow) (w, attrib, &wTransform, region, mask);
+ status = (*s->paintWindow) (w, attrib, &wTransform, region,
+ mask | PAINT_WINDOW_TRANSFORMED_MASK);
WRAP (tds, s, paintWindow, tdPaintWindow);
matrixTranslate (&wTransform, 0.0f, 0.0f, -wwidth);
@@ -248,14 +249,13 @@ tdPaintWindowWithDepth (CompWindow *w,
{
glEnable (GL_CULL_FACE);
glCullFace (GL_BACK);
-
+
UNWRAP (tds, s, paintWindow);
status = (*s->paintWindow) (w, attrib, &wTransform, region, mask);
WRAP (tds, s, paintWindow, tdPaintWindow);
}
/* Paint window depth. */
-
glPushMatrix ();
glLoadMatrixf (wTransform.m);
@@ -385,7 +385,8 @@ tdPaintWindowWithDepth (CompWindow *w,
matrixTranslate (&wTransform, 0.0f, 0.0f, wwidth);
UNWRAP (tds, s, paintWindow);
- status = (*s->paintWindow) (w, attrib, &wTransform, region, mask);
+ status = (*s->paintWindow) (w, attrib, &wTransform, region,
+ mask | PAINT_WINDOW_TRANSFORMED_MASK);
WRAP(tds, s, paintWindow, tdPaintWindow);
matrixTranslate(&wTransform, 0.0f, 0.0f, -wwidth);