summaryrefslogtreecommitdiffstats
path: root/src/render/graphicshelpers/graphicscontext_p.h
diff options
context:
space:
mode:
authorAntti Määttä <antti.maatta@qt.io>2016-08-26 09:51:19 +0300
committerAntti Määttä <antti.maatta@qt.io>2016-10-21 11:10:07 +0000
commitaaf18f4ad42ad63d309e04559b4e304fd1472638 (patch)
treea9c1c00c302038f5c5145b6ad5de1874d3210e7f /src/render/graphicshelpers/graphicscontext_p.h
parent4428b5d8699ad3feb55dc49411beb86b79773ef8 (diff)
Implement readFramebuffer
Add readFramebuffer function to GraphicsContext to avoid using imported qt_gl_read_framebuffer function. Change-Id: If620960fc828e46152915234c57c432d57c6e989 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/graphicshelpers/graphicscontext_p.h')
-rw-r--r--src/render/graphicshelpers/graphicscontext_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/graphicshelpers/graphicscontext_p.h b/src/render/graphicshelpers/graphicscontext_p.h
index c1f561a62..4a143d903 100644
--- a/src/render/graphicshelpers/graphicscontext_p.h
+++ b/src/render/graphicshelpers/graphicscontext_p.h
@@ -247,6 +247,7 @@ private:
HGLBuffer createGLBufferFor(Buffer *buffer);
void uploadDataToGLBuffer(Buffer *buffer, GLBuffer *b, bool releaseBuffer = false);
bool bindGLBuffer(GLBuffer *buffer, GLBuffer::Type type);
+ void resolveRenderTargetFormat();
bool m_initialized;
const unsigned int m_id;
@@ -262,6 +263,7 @@ private:
QHash<Qt3DCore::QNodeId, HGLBuffer> m_renderBufferHash;
QHash<Qt3DCore::QNodeId, GLuint> m_renderTargets;
QHash<GLuint, QSize> m_renderTargetsSize;
+ QAbstractTexture::TextureFormat m_renderTargetFormat;
QHash<QSurface *, GraphicsHelperInterface*> m_glHelpers;