summaryrefslogtreecommitdiffstats
path: root/src/render/graphicshelpers/graphicshelpergl3_3.cpp
diff options
context:
space:
mode:
authorRobert Brock <robert.brock@kdab.com>2016-02-24 18:03:48 +0000
committerPaul Lemire <paul.lemire@kdab.com>2016-03-02 10:53:48 +0000
commitc176624a4d065c9d05f927cb16ab1eb41cbc67e6 (patch)
treec29054a4399dd432d7fcf16bc0e58188899b8582 /src/render/graphicshelpers/graphicshelpergl3_3.cpp
parent135db92fd1a5e88db11a5e2a0b2c1d227b5a6117 (diff)
QRenderAttachment renamed RenderAttachmentType to AttachmentPoint
As per API review New name was better fitting to the actual description/usage Renamed point to attachmentPoint Change-Id: Id14a312acabdcc9bda49a4d30efe490342105660 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/graphicshelpers/graphicshelpergl3_3.cpp')
-rw-r--r--src/render/graphicshelpers/graphicshelpergl3_3.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render/graphicshelpers/graphicshelpergl3_3.cpp b/src/render/graphicshelpers/graphicshelpergl3_3.cpp
index b0bd2a05b..0ee157453 100644
--- a/src/render/graphicshelpers/graphicshelpergl3_3.cpp
+++ b/src/render/graphicshelpers/graphicshelpergl3_3.cpp
@@ -348,11 +348,11 @@ void GraphicsHelperGL3_3::bindFrameBufferAttachment(QOpenGLTexture *texture, con
{
GLenum attr = GL_DEPTH_STENCIL_ATTACHMENT;
- if (attachment.m_type <= QRenderAttachment::ColorAttachment15)
- attr = GL_COLOR_ATTACHMENT0 + attachment.m_type;
- else if (attachment.m_type == QRenderAttachment::DepthAttachment)
+ if (attachment.m_point <= QRenderAttachment::ColorAttachment15)
+ attr = GL_COLOR_ATTACHMENT0 + attachment.m_point;
+ else if (attachment.m_point == QRenderAttachment::DepthAttachment)
attr = GL_DEPTH_ATTACHMENT;
- else if (attachment.m_type == QRenderAttachment::StencilAttachment)
+ else if (attachment.m_point == QRenderAttachment::StencilAttachment)
attr = GL_STENCIL_ATTACHMENT;
texture->bind();