summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget.cpp
diff options
context:
space:
mode:
authorJani Hautakangas <jani.hautakangas@nokia.com>2011-03-07 22:26:05 (GMT)
committerJani Hautakangas <jani.hautakangas@nokia.com>2011-03-15 17:09:32 (GMT)
commit2355774b061d9e7213634ddec3c50280c4b10b70 (patch)
treeb7f1b95a4839c2f6cc4f0cd119fd31aeb3929c15 /src/gui/kernel/qwidget.cpp
parentb3b332a50a6288164ca86d0691e9615f9c19abda (diff)
downloadQt-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.cpp4
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);
}