Added support for resetting QOpenGLFramebufferObject attachments.
authorSamuel Rødal <samuel.rodal@nokia.com>
Tue, 14 Feb 2012 18:43:46 +0000 (19:43 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 15 Feb 2012 16:01:50 +0000 (17:01 +0100)
commitb36ece3ff4ee516eab8f0f34c8e7f54d2fcee311
tree432b03015991a752012d781558020751708b12d6
parent0f0d8a5a8fecf545cdf58ab50d05253ffd20e90b
Added support for resetting QOpenGLFramebufferObject attachments.

As the documentation says, this can be useful to free or recreate
attachments when needed. For example, it might be useful to free stencil
and depth attachments to free up resources when not rendering to the
framebuffer object.

Change-Id: Ib267024fdd380a788c256eb8fb86e0f8832329e0
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
src/gui/opengl/qopenglframebufferobject.cpp
src/gui/opengl/qopenglframebufferobject.h
src/gui/opengl/qopenglframebufferobject_p.h