summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2008-03-27 15:31:11 +0100
committerDennis kasprzyk <onestone@opencompositing.org>2008-03-27 15:31:11 +0100
commit9a1e2505cf80f6c1b91df650bb369c7ac054cdd5 (patch)
treeb71aa756c8a0741373a737d47421b68d7d86c64c
parent7db21e27d2452717be0f9f8db1bf7c0256dd88d4 (diff)
download3d-9a1e2505cf80f6c1b91df650bb369c7ac054cdd5.tar.gz
3d-9a1e2505cf80f6c1b91df650bb369c7ac054cdd5.tar.bz2
Enable 3d only if s->hsize is bigger than 2.
-rw-r--r--3d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/3d.c b/3d.c
index da88a90..be857c3 100644
--- a/3d.c
+++ b/3d.c
@@ -137,7 +137,7 @@ tdPreparePaintScreen (CompScreen *s,
TD_SCREEN (s);
CUBE_SCREEN (s);
- active = (cs->rotationState != RotationNone) &&
+ active = (cs->rotationState != RotationNone) && s->hsize > 2 &&
!(tdGetManualOnly(s) && (cs->rotationState != RotationManual));
amount = ((float)msSinceLastPaint * tdGetSpeed (s) / 1000.0);