summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-08-28 12:30:50 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-08-28 13:00:08 (GMT)
commit47ebdcb8455191ffafcfcbf0b64878245494cbd0 (patch)
tree31936994974bc63245dbe05b6c0b1f7ee9550b14
parent7a69207653d97037d76b3dedfa3fa67033962eb3 (diff)
downloadQt-47ebdcb8455191ffafcfcbf0b64878245494cbd0.zip
Qt-47ebdcb8455191ffafcfcbf0b64878245494cbd0.tar.gz
Qt-47ebdcb8455191ffafcfcbf0b64878245494cbd0.tar.bz2
Added some information to QGLFramebufferObject documentation
Reviewed-by: Trond
-rw-r--r--src/opengl/qglframebufferobject.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/opengl/qglframebufferobject.cpp b/src/opengl/qglframebufferobject.cpp
index 52363cb..0db5659 100644
--- a/src/opengl/qglframebufferobject.cpp
+++ b/src/opengl/qglframebufferobject.cpp
@@ -516,12 +516,12 @@ void QGLFramebufferObjectPrivate::init(const QSize &sz, QGLFramebufferObject::At
framebuffer objects more portable.
\endlist
+ When using a QPainter to paint to a QGLFramebufferObject you should take
+ care that the QGLFramebufferObject is created with the CombinedDepthStencil
+ attachment for QPainter to be able to render correctly.
Note that you need to create a QGLFramebufferObject with more than one
sample per pixel for primitives to be antialiased when drawing using a
- QPainter, unless if the QPainter::HighQualityAntialiasing render hint is
- set. The QPainter::HighQualityAntialiasing render hint will enable
- antialiasing as long as the \c{GL_ARB_fragment_program} extension is
- present. To create a multisample framebuffer object you should use one of
+ QPainter. To create a multisample framebuffer object you should use one of
the constructors that take a QGLFramebufferObject parameter, and set the
QGLFramebufferObject::samples() property to a non-zero value.