summaryrefslogtreecommitdiffstats
path: root/src/render/graphicshelpers/graphicshelpergl3_3_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2017-06-30 12:46:42 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2017-07-05 19:08:18 +0000
commitd6bd48a947cbcae7da6c7cae00e5dddc954fa419 (patch)
tree725dbdad7aace4bea785776b35dca82179dcdf2e /src/render/graphicshelpers/graphicshelpergl3_3_p.h
parent63c30b44f475359afc0e27b31b040ba84996e1ad (diff)
Add renderbuffer support for FBO attachments with OpenGL ES
Only relevant for QRenderTargetOutput::DepthStencil, which is the common case for offscreen render targets when the depth/stencil content is not interesting afterwards. Task-number: QTBUG-61721 Change-Id: I9ceff09f24f1c93bb37452d1e3a2f96385bfe6c4 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/graphicshelpers/graphicshelpergl3_3_p.h')
-rw-r--r--src/render/graphicshelpers/graphicshelpergl3_3_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/graphicshelpers/graphicshelpergl3_3_p.h b/src/render/graphicshelpers/graphicshelpergl3_3_p.h
index c093c801e..cb7b723ff 100644
--- a/src/render/graphicshelpers/graphicshelpergl3_3_p.h
+++ b/src/render/graphicshelpers/graphicshelpergl3_3_p.h
@@ -74,7 +74,9 @@ public:
void alphaTest(GLenum mode1, GLenum mode2) Q_DECL_OVERRIDE;
void bindBufferBase(GLenum target, GLuint index, GLuint buffer) Q_DECL_OVERRIDE;
void bindFragDataLocation(GLuint shader, const QHash<QString, int> &outputs) Q_DECL_OVERRIDE;
+ bool frameBufferNeedsRenderBuffer(const Attachment &attachment) Q_DECL_OVERRIDE;
void bindFrameBufferAttachment(QOpenGLTexture *texture, const Attachment &attachment) Q_DECL_OVERRIDE;
+ void bindFrameBufferAttachment(RenderBuffer *renderBuffer, const Attachment &attachment) Q_DECL_OVERRIDE;
void bindFrameBufferObject(GLuint frameBufferId) Q_DECL_OVERRIDE;
void bindShaderStorageBlock(GLuint programId, GLuint shaderStorageBlockIndex, GLuint shaderStorageBlockBinding) Q_DECL_OVERRIDE;
void bindUniformBlock(GLuint programId, GLuint uniformBlockIndex, GLuint uniformBlockBinding) Q_DECL_OVERRIDE;