summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-01-26 19:33:33 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-01-26 19:33:33 (GMT)
commitdbf2b5843e1405035f5b6f8af169916618920806 (patch)
treef431a19b7f6f3886eef1b416961eeab1771c83da
parent17023dfb7146b41720b150b8c1d59e1c36357f88 (diff)
downloadblt-dbf2b5843e1405035f5b6f8af169916618920806.zip
blt-dbf2b5843e1405035f5b6f8af169916618920806.tar.gz
blt-dbf2b5843e1405035f5b6f8af169916618920806.tar.bz2
sanity check on 3d render
-rw-r--r--tksao/frame/frame3d.C4
1 files changed, 2 insertions, 2 deletions
diff --git a/tksao/frame/frame3d.C b/tksao/frame/frame3d.C
index 5f2acc6..b279175 100644
--- a/tksao/frame/frame3d.C
+++ b/tksao/frame/frame3d.C
@@ -331,7 +331,7 @@ int Frame3d::fillImageJoin(RayTrace* rt)
int zz = dd[2];
// sanity check
- if (!ww || !hh || !zz)
+ if (ww<=0 || hh<=0 || zz<=0)
return 1;
// local var overide
@@ -411,7 +411,7 @@ void Frame3d::fillImageDetach(RayTrace* rt)
int zz = dd[2];
// sanity check
- if (!ww || !hh || !zz)
+ if (ww<=0 || hh<=0 || zz<=0)
return;
nrays_ = ww*hh;