diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-10-02 11:18:52 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2009-10-07 02:57:15 (GMT) |
commit | 93796d0b20fdbef51a0ec0a6e4a8e7c44425262c (patch) | |
tree | ce0752324cd504a6283407729fc0306f3122b716 | |
parent | c7721a0de7378860e6d763ba489750b7c31c095b (diff) | |
download | Qt-93796d0b20fdbef51a0ec0a6e4a8e7c44425262c.zip Qt-93796d0b20fdbef51a0ec0a6e4a8e7c44425262c.tar.gz Qt-93796d0b20fdbef51a0ec0a6e4a8e7c44425262c.tar.bz2 |
Fixed some projective transform rendering bugs on qreal=float platforms.
We should set the near clip slightly higher when qreal is float to avoid
numerical precision problems.
Reviewed-by: Trond
(cherry picked from commit addc0cbdbe21da27f7ad9f0ee05a16e24afa392d)
-rw-r--r-- | src/gui/painting/qtransform.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qtransform.cpp b/src/gui/painting/qtransform.cpp index abe9e5e..8118450 100644 --- a/src/gui/painting/qtransform.cpp +++ b/src/gui/painting/qtransform.cpp @@ -52,7 +52,7 @@ QT_BEGIN_NAMESPACE -#define Q_NEAR_CLIP 0.000001 +#define Q_NEAR_CLIP (sizeof(qreal) == sizeof(double) ? 0.000001 : 0.0001) #ifdef MAP # undef MAP |