diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2017-07-26 16:33:06 +0200 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2017-07-28 06:11:55 +0000 |
commit | e2d7e2108c27573c7811faad951ad6ebd8df403d (patch) | |
tree | e8833e37fa57ec7a8d7fabf4166598013d080044 /src/render/graphicshelpers/graphicscontext.cpp | |
parent | 721c44edfdedb0360181f8160144709867ed8749 (diff) |
Fix: set renderer dirty flag on initialization
Change-Id: I9c164409e3ced5d78182542ae060692e0f65d3ac
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/graphicshelpers/graphicscontext.cpp')
-rw-r--r-- | src/render/graphicshelpers/graphicscontext.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/render/graphicshelpers/graphicscontext.cpp b/src/render/graphicshelpers/graphicscontext.cpp index 5004eb2ef..6473fee76 100644 --- a/src/render/graphicshelpers/graphicscontext.cpp +++ b/src/render/graphicshelpers/graphicscontext.cpp @@ -1412,6 +1412,7 @@ void GraphicsContext::specifyAttribute(const Attribute *attribute, Buffer *buffe const GLint attributeDataType = glDataTypeFromAttributeDataType(attribute->vertexBaseType()); const HGLBuffer glBufferHandle = m_renderer->nodeManagers()->glBufferManager()->lookupHandle(buffer->peerId()); + Q_ASSERT(!glBufferHandle.isNull()); const GLBuffer::Type bufferType = bufferTypeToGLBufferType(buffer->type()); int typeSize = 0; |