summaryrefslogtreecommitdiffstats
path: root/dist/changes-4.6.0
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-05-29 12:00:45 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-05-29 14:10:24 (GMT)
commit07fbbf76bef1845bb6c490b15a0b7caabf23d888 (patch)
tree34adda17d7bc6ce199fa62de032c44dd14e962e9 /dist/changes-4.6.0
parenta322d3faacdb8e5a8649b478b3eaa8aa03d789d6 (diff)
downloadQt-07fbbf76bef1845bb6c490b15a0b7caabf23d888.zip
Qt-07fbbf76bef1845bb6c490b15a0b7caabf23d888.tar.gz
Qt-07fbbf76bef1845bb6c490b15a0b7caabf23d888.tar.bz2
Made GL2 engine default for QGLWidget, and added GL2 sync() function
To allow mixing QPainter and raw OpenGL commands we need to have some way for the user to say that's he's about to use raw OpenGL so that we are free to do buffering optimizations in the paint engines and use either GL1 or GL2 paint engine. As there's already a syncState() function in QPaintEngine we've reused this and added QPaintEngineEx::sync() which takes care of syncing/flushing the paint engine. Reviewed-by: Trond
Diffstat (limited to 'dist/changes-4.6.0')
-rw-r--r--dist/changes-4.6.05
1 files changed, 5 insertions, 0 deletions
diff --git a/dist/changes-4.6.0 b/dist/changes-4.6.0
index 6a94f26..bedf58a 100644
--- a/dist/changes-4.6.0
+++ b/dist/changes-4.6.0
@@ -49,3 +49,8 @@ information about a particular change.
- QStyleOptionGraphicsItem::levelOfDetails is obsoleted and its value
is always initialized to 1. For a more fine-grained value use
QStyleOptionGraphicsItem::levelOfDetailFromTransform(const QTransform &).
+
+ - When mixing OpenGL and QPainter calls you need to first call syncState()
+ on the paint engine, for example "painter->paintEngine()->syncState()".
+ This is to ensure that the engine flushes any pending drawing and sets up
+ the GL modelview/projection matrices properly.