diff options
author | Jani Hautakangas <jani.hautakangas@nokia.com> | 2011-03-07 22:26:05 (GMT) |
---|---|---|
committer | Jani Hautakangas <jani.hautakangas@nokia.com> | 2011-03-15 17:09:32 (GMT) |
commit | 2355774b061d9e7213634ddec3c50280c4b10b70 (patch) | |
tree | b7f1b95a4839c2f6cc4f0cd119fd31aeb3929c15 /src/gui/kernel/qwidget.cpp | |
parent | b3b332a50a6288164ca86d0691e9615f9c19abda (diff) | |
download | Qt-2355774b061d9e7213634ddec3c50280c4b10b70.zip Qt-2355774b061d9e7213634ddec3c50280c4b10b70.tar.gz Qt-2355774b061d9e7213634ddec3c50280c4b10b70.tar.bz2 |
Initial implementation of GLES2.0 resource pooling
Keep the implementation in separate
qpixmapdata_poolgl.cpp file until the pooling has
been verified and confirmed to work ok.
Task-number: QTBUG-15253 QTBUG-17850
Reviewed-by: Samuel Rødal
Diffstat (limited to 'src/gui/kernel/qwidget.cpp')
-rw-r--r-- | src/gui/kernel/qwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp index 1786e65..e8d9efd 100644 --- a/src/gui/kernel/qwidget.cpp +++ b/src/gui/kernel/qwidget.cpp @@ -1326,8 +1326,8 @@ void QWidgetPrivate::init(QWidget *parentWidget, Qt::WindowFlags f) //give potential windows a bigger "pre-initial" size; create_sys() will give them a new size later #ifdef Q_OS_SYMBIAN if (isGLWidget) { - // Don't waste GPU mem for unnecessary large egl surface - data.crect = QRect(0,0,2,2); + // Don't waste GPU mem for unnecessary large egl surface until resized by application + data.crect = QRect(0,0,1,1); } else { data.crect = parentWidget ? QRect(0,0,100,30) : QRect(0,0,360,640); } |