summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond@trolltech.com>2009-08-26 15:33:21 (GMT)
committerTrond Kjernåsen <trond@trolltech.com>2009-08-26 15:35:11 (GMT)
commit9385eebd22e005ff6027594ea643a8f46ed2e3e3 (patch)
tree52dc156fe384c51db75a95474e3db5de90b41743 /doc
parenta6f19188282b427272f075063a306c7ef98e8a95 (diff)
downloadQt-9385eebd22e005ff6027594ea643a8f46ed2e3e3.zip
Qt-9385eebd22e005ff6027594ea643a8f46ed2e3e3.tar.gz
Qt-9385eebd22e005ff6027594ea643a8f46ed2e3e3.tar.bz2
Made the opengl/overpainting example work with the GL 2 engine.
Since the GL 2 engine can't set/unset every single GL state that a user might possibly change, we have to make a rule that if something is changed from its default state, it needs to be reset before the GL 2 engine can draw correctly. Reviewed-by: Samuel
Diffstat (limited to 'doc')
-rw-r--r--doc/src/examples/overpainting.qdoc7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/src/examples/overpainting.qdoc b/doc/src/examples/overpainting.qdoc
index 91100c0..b19b503 100644
--- a/doc/src/examples/overpainting.qdoc
+++ b/doc/src/examples/overpainting.qdoc
@@ -159,9 +159,10 @@
\snippet examples/opengl/overpainting/glwidget.cpp 7
- Once the list containing the object has been executed, the matrix stack
- needs to be restored to its original state at the start of this function
- before we can begin overpainting:
+ Once the list containing the object has been executed, the GL
+ states we changed and the matrix stack needs to be restored to its
+ original state at the start of this function before we can begin
+ overpainting:
\snippet examples/opengl/overpainting/glwidget.cpp 8