summaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-05-29 14:00:45 +0200
committerSamuel Rødal <sroedal@trolltech.com>2009-05-29 16:10:24 +0200
commit07fbbf76bef1845bb6c490b15a0b7caabf23d888 (patch)
tree34adda17d7bc6ce199fa62de032c44dd14e962e9 /dist
parenta322d3faacdb8e5a8649b478b3eaa8aa03d789d6 (diff)
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')
-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 6a94f26fa6..bedf58af8a 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.