diff options
author | Gunnar Sletta <gunnar@sletta.org> | 2014-08-27 07:35:24 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar@sletta.org> | 2014-08-27 13:15:03 +0200 |
commit | 5e254fc9fa32f9639fd8fb0e2bb23d08073c2231 (patch) | |
tree | 236a45faf6b1c812c130d1d93b48075b27eae68a /src/quick/scenegraph/qsgcontext.cpp | |
parent | 9ae3e24e339b6f9b1f4f3bcf66d76b8f045932e7 (diff) |
Make minimum FBO size 1x1 on newer OSX.
This problem existed on 10.6, but is not reproducible on newer
MacBookPros, so disable it for 10.8 and up.
Change-Id: I0ae216c8e2307df5f77a783ec2d2031bf12ccbf2
Task-number: QTBUG-20193
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/quick/scenegraph/qsgcontext.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgcontext.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp index 0bca81d48c..fdf27085b9 100644 --- a/src/quick/scenegraph/qsgcontext.cpp +++ b/src/quick/scenegraph/qsgcontext.cpp @@ -352,10 +352,10 @@ QSurfaceFormat QSGContext::defaultSurfaceFormat() const QSize QSGContext::minimumFBOSize() const { #ifdef Q_OS_MAC - return QSize(33, 33); -#else - return QSize(1, 1); + if (QSysInfo::MacintoshVersion < QSysInfo::MV_10_8) + return QSize(33, 33); #endif + return QSize(1, 1); } |