summaryrefslogtreecommitdiffstats
path: root/src/render/graphicshelpers/graphicshelpergl3_3.cpp
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.cpp
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.cpp')
-rw-r--r--src/render/graphicshelpers/graphicshelpergl3_3.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/render/graphicshelpers/graphicshelpergl3_3.cpp b/src/render/graphicshelpers/graphicshelpergl3_3.cpp
index 6959bdc6b..65c501018 100644
--- a/src/render/graphicshelpers/graphicshelpergl3_3.cpp
+++ b/src/render/graphicshelpers/graphicshelpergl3_3.cpp
@@ -364,6 +364,12 @@ bool GraphicsHelperGL3_3::checkFrameBufferComplete()
return (m_funcs->glCheckFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE);
}
+bool GraphicsHelperGL3_3::frameBufferNeedsRenderBuffer(const Attachment &attachment)
+{
+ Q_UNUSED(attachment);
+ return false;
+}
+
void GraphicsHelperGL3_3::bindFrameBufferAttachment(QOpenGLTexture *texture, const Attachment &attachment)
{
GLenum attr = GL_DEPTH_STENCIL_ATTACHMENT;
@@ -389,6 +395,13 @@ void GraphicsHelperGL3_3::bindFrameBufferAttachment(QOpenGLTexture *texture, con
texture->release();
}
+void GraphicsHelperGL3_3::bindFrameBufferAttachment(RenderBuffer *renderBuffer, const Attachment &attachment)
+{
+ Q_UNUSED(renderBuffer);
+ Q_UNUSED(attachment);
+ Q_UNREACHABLE();
+}
+
bool GraphicsHelperGL3_3::supportsFeature(GraphicsHelperInterface::Feature feature) const
{
switch (feature) {