summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-08-15 18:01:46 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-08-15 18:01:46 +0800
commit19afb2f55648ea8d3aea0c6eec7d4202616aeaf6 (patch)
treecc910bcc06d5fd96fbdbdc9f8a2c8d23ad92210d
parentc0d92a15516720e415deb7b123bff58d6ba36167 (diff)
download3d-19afb2f55648ea8d3aea0c6eec7d4202616aeaf6.tar.gz
3d-19afb2f55648ea8d3aea0c6eec7d4202616aeaf6.tar.bz2
Account for core changes
-rw-r--r--src/3d.cpp9
-rw-r--r--src/3d.h3
2 files changed, 10 insertions, 2 deletions
diff --git a/src/3d.cpp b/src/3d.cpp
index 6d82285..8212890 100644
--- a/src/3d.cpp
+++ b/src/3d.cpp
@@ -12,6 +12,7 @@ setFunctions (bool enabled)
tds->cScreen->donePaintSetEnabled (tds, enabled);
tds->cubeScreen->cubePaintViewportSetEnabled (tds, enabled);
tds->cubeScreen->cubeShouldPaintViewportSetEnabled (tds, enabled);
+ tds->cubeScreen->cubeShouldPaintAllViewportsSetEnabled (tds, enabled);
foreach (CompWindow *w, screen->windows ())
{
@@ -91,8 +92,6 @@ TdScreen::preparePaint (int msSinceLastPaint)
cScreen->preparePaint (msSinceLastPaint);
setFunctions (mActive);
- if (mActive)
- cs->paintAllViewports (true);
}
#define DOBEVEL(corner) (tds->optionGetBevel##corner () ? bevel : 0)
@@ -474,6 +473,12 @@ TdScreen::cubePaintViewport (const GLScreenPaintAttrib &attrib,
}
bool
+TdScreen::cubeShouldPaintAllViewports ()
+{
+ return true;
+}
+
+bool
TdScreen::cubeShouldPaintViewport (const GLScreenPaintAttrib &attrib,
const GLMatrix &transform,
CompOutput *outputPtr,
diff --git a/src/3d.h b/src/3d.h
index 195c51b..a0614c5 100644
--- a/src/3d.h
+++ b/src/3d.h
@@ -91,6 +91,9 @@ class TdScreen :
const GLMatrix &,
CompOutput *,
PaintOrder );
+
+ bool
+ cubeShouldPaintAllViewports ();
bool mActive;
bool mPainting3D;