summaryrefslogtreecommitdiff
path: root/goodies
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-11-17 08:30:20 +0000
committerOliver Bolte <obo@openoffice.org>2004-11-17 08:30:20 +0000
commitdc76a6613cf371f2265a442ad1ffe6b97c52d690 (patch)
tree564cb62645e945fc65ca5deaba1d0cf5722ded9f /goodies
parentb8bea974061d0c1f1b01f82ea727d339ce08864b (diff)
INTEGRATION: CWS aw020 (1.3.12); FILE MERGED
2004/10/29 11:19:51 aw 1.3.12.1: #i36281#
Diffstat (limited to 'goodies')
-rw-r--r--goodies/source/base3d/b3dtrans.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/goodies/source/base3d/b3dtrans.cxx b/goodies/source/base3d/b3dtrans.cxx
index 2c5c80e37107..217e69f9abfd 100644
--- a/goodies/source/base3d/b3dtrans.cxx
+++ b/goodies/source/base3d/b3dtrans.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: b3dtrans.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: rt $ $Date: 2004-09-08 15:27:46 $
+ * last change: $Author: obo $ $Date: 2004-11-17 09:30:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -322,7 +322,12 @@ void B3dTransformationSet::CalcViewport()
// Mit den neuen Werten Projektion und ViewPort setzen
Matrix4D aNewProjection;
- double fDistPart = (fFarBound - fNearBound) * SMALL_DVALUE;
+
+ // #i36281#
+ // OpenGL needs a little more rough additional size to not let
+ // the front face vanish. Changed from SMALL_DVALUE to 0.000001,
+ // which is 1/10000th, comared with 1/tenth of a million from SMALL_DVALUE.
+ const double fDistPart((fFarBound - fNearBound) * 0.0001);
// Near, Far etwas grosszuegiger setzen, um falsches,
// zu kritisches clippen zu verhindern