diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-03-09 12:07:18 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-04-01 14:32:53 (GMT) |
commit | 6ab74831766cdd5cf4e94eee8a60099436e61202 (patch) | |
tree | 137b83f6605a50a200cc266810230e49a057f4c1 /src/opengl/qwindowsurface_gl_p.h | |
parent | 7cee2659388388754d741ba4b46647c57d03c498 (diff) | |
download | Qt-6ab74831766cdd5cf4e94eee8a60099436e61202.zip Qt-6ab74831766cdd5cf4e94eee8a60099436e61202.tar.gz Qt-6ab74831766cdd5cf4e94eee8a60099436e61202.tar.bz2 |
Fixes: Extreme amount of pixel buffers created in embeddeddialogs demo.
Details: As a window surface is created even for embedded widgets, don't create
the GL resources required by the surface until they are actually needed.
RevBy: Tom
Diffstat (limited to 'src/opengl/qwindowsurface_gl_p.h')
-rw-r--r-- | src/opengl/qwindowsurface_gl_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/qwindowsurface_gl_p.h b/src/opengl/qwindowsurface_gl_p.h index 0194378..d47e3e3 100644 --- a/src/opengl/qwindowsurface_gl_p.h +++ b/src/opengl/qwindowsurface_gl_p.h @@ -74,6 +74,7 @@ public: QPaintDevice *paintDevice(); void flush(QWidget *widget, const QRegion ®ion, const QPoint &offset); void setGeometry(const QRect &rect); + void updateGeometry(); bool scroll(const QRegion &area, int dx, int dy); void beginPaint(const QRegion ®ion); |