From b36ece3ff4ee516eab8f0f34c8e7f54d2fcee311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20R=C3=B8dal?= Date: Tue, 14 Feb 2012 19:43:46 +0100 Subject: 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 --- src/gui/opengl/qopenglframebufferobject.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/opengl/qopenglframebufferobject.h') diff --git a/src/gui/opengl/qopenglframebufferobject.h b/src/gui/opengl/qopenglframebufferobject.h index 0b2ead1cbbf..63260f1940f 100644 --- a/src/gui/opengl/qopenglframebufferobject.h +++ b/src/gui/opengl/qopenglframebufferobject.h @@ -101,6 +101,8 @@ public: QImage toImage() const; Attachment attachment() const; + void setAttachment(Attachment attachment); + GLuint handle() const; static bool bindDefault(); -- cgit v1.2.3