diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-07-01 15:25:49 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-07-28 14:40:26 (GMT) |
commit | e70af37dba3defc0f1b0a08cb5770d3662f3f0ec (patch) | |
tree | f7273b28eab0cd116cd47c0c46fc2d58c1464843 /src/opengl | |
parent | 2094d3c03ba895e4458a0bb6b1b4935abacd4816 (diff) | |
download | Qt-e70af37dba3defc0f1b0a08cb5770d3662f3f0ec.zip Qt-e70af37dba3defc0f1b0a08cb5770d3662f3f0ec.tar.gz Qt-e70af37dba3defc0f1b0a08cb5770d3662f3f0ec.tar.bz2 |
Fixed incorrect QGLFramebufferObject documentation.
Reviewed-by: Gunnar Sletta
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/qglframebufferobject.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/opengl/qglframebufferobject.cpp b/src/opengl/qglframebufferobject.cpp index 3685661..abec78a 100644 --- a/src/opengl/qglframebufferobject.cpp +++ b/src/opengl/qglframebufferobject.cpp @@ -746,8 +746,11 @@ QGLFramebufferObject::~QGLFramebufferObject() The framebuffer can become invalid if the initialization process fails, the user attaches an invalid buffer to the framebuffer - object, or a non-power of 2 width/height is specified as the + object, or a non-power of two width/height is specified as the texture size if the texture target is \c{GL_TEXTURE_2D}. + The non-power of two limitation does not apply if the OpenGL version + is 2.0 or higher, or if the GL_ARB_texture_non_power_of_two extension + is present. */ bool QGLFramebufferObject::isValid() const { |