diff options
author | Andy Nichols <andy.nichols@qt.io> | 2017-07-11 14:17:28 +0200 |
---|---|---|
committer | Andy Nichols <andy.nichols@qt.io> | 2017-07-11 14:17:28 +0200 |
commit | 2dd6aa017685bd76f3a315871d07fdaef0e6d5f1 (patch) | |
tree | 3ee522501db89ab9d295bd169298497c0d86309e /src/render/graphicshelpers/graphicscontext.cpp | |
parent | 06fa003da1dc6bc16616f3e687de8513d8b40a1c (diff) | |
parent | cadfd44c77de9ad3d66e936df140e4ba6efb0d74 (diff) |
Merge remote-tracking branch 'origin/5.9' into dev
Change-Id: I4ceccd338a937a2ada231f568ed02c7a87bd6e80
Diffstat (limited to 'src/render/graphicshelpers/graphicscontext.cpp')
-rw-r--r-- | src/render/graphicshelpers/graphicscontext.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/render/graphicshelpers/graphicscontext.cpp b/src/render/graphicshelpers/graphicscontext.cpp index 0798d6a0c..582d22b63 100644 --- a/src/render/graphicshelpers/graphicscontext.cpp +++ b/src/render/graphicshelpers/graphicscontext.cpp @@ -1828,8 +1828,11 @@ QImage GraphicsContext::readFramebuffer(const QRect &rect) GLint samples = 0; m_gl->functions()->glGetIntegerv(GL_SAMPLES, &samples); - if (samples > 0 && !m_glHelper->supportsFeature(GraphicsHelperInterface::BlitFramebuffer)) + if (samples > 0 && !m_glHelper->supportsFeature(GraphicsHelperInterface::BlitFramebuffer)) { + qWarning () << Q_FUNC_INFO << "Unable to capture multisampled framebuffer; " + "Required feature BlitFramebuffer is missing."; return img; + } img = QImage(rect.width(), rect.height(), imageFormat); @@ -1850,6 +1853,7 @@ QImage GraphicsContext::readFramebuffer(const QRect &rect) if (status != GL_FRAMEBUFFER_COMPLETE) { gl->glDeleteRenderbuffers(1, &rb); gl->glDeleteFramebuffers(1, &fbo); + qWarning () << Q_FUNC_INFO << "Copy-framebuffer not complete: " << status; return img; } |