summaryrefslogtreecommitdiffstats
path: root/src/render/graphicshelpers/graphicscontext.cpp
diff options
context:
space:
mode:
authorRobert Brock <robert.brock@kdab.com>2016-02-25 11:23:09 +0000
committerRobert Brock <robert.brock@kdab.com>2016-03-03 09:52:10 +0000
commit921a6641ee3b5997ac0a8a3099af02ab1d5585de (patch)
tree596287147a3f48c74227996f9dac3f5296d4e544 /src/render/graphicshelpers/graphicscontext.cpp
parent568805fd24931787b8d318d869fa7149f09dc958 (diff)
QRenderAttachment renamed to QRenderTargetOutput
As per API review Change-Id: Icaca9797c01100402e6d103be2a0425820a717ec Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/graphicshelpers/graphicscontext.cpp')
-rw-r--r--src/render/graphicshelpers/graphicscontext.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/render/graphicshelpers/graphicscontext.cpp b/src/render/graphicshelpers/graphicscontext.cpp
index a30f09f48..3c8600eef 100644
--- a/src/render/graphicshelpers/graphicscontext.cpp
+++ b/src/render/graphicshelpers/graphicscontext.cpp
@@ -488,19 +488,19 @@ void GraphicsContext::bindFrameBufferAttachmentHelper(GLuint fboId, const Attach
void GraphicsContext::activateDrawBuffers(const AttachmentPack &attachments)
{
- int activeDrawBuffers[QRenderAttachment::ColorAttachment15 + 1];
+ int activeDrawBuffers[QRenderTargetOutput::ColorAttachment15 + 1];
int i = 0;
- const QList<QRenderAttachment::AttachmentPoint> &drawBuffers = attachments.drawBuffers();
+ const QList<QRenderTargetOutput::AttachmentPoint> &drawBuffers = attachments.drawBuffers();
// If drawBuffers is empty, use all the attachments as draw buffers
if (drawBuffers.isEmpty()) {
Q_FOREACH (const Attachment &attachment, attachments.attachments())
- if (attachment.m_point <= QRenderAttachment::ColorAttachment15)
+ if (attachment.m_point <= QRenderTargetOutput::ColorAttachment15)
activeDrawBuffers[i++] = attachment.m_point;
} else {
- Q_FOREACH (const QRenderAttachment::AttachmentPoint drawBuffer, drawBuffers)
- if (drawBuffer <= QRenderAttachment::ColorAttachment15)
+ Q_FOREACH (const QRenderTargetOutput::AttachmentPoint drawBuffer, drawBuffers)
+ if (drawBuffer <= QRenderTargetOutput::ColorAttachment15)
activeDrawBuffers[i++] = drawBuffer;
}