diff options
author | Kevin Ottens <kevin.ottens@kdab.com> | 2015-12-15 14:01:15 +0100 |
---|---|---|
committer | Kevin Ottens <kevin.ottens@kdab.com> | 2015-12-18 15:55:29 +0000 |
commit | 38fe0e3aae7dbaacf02064defa42b8cff292703b (patch) | |
tree | 58877175060be01ad80a51f76be34a1594d5dc5d /src/render/backend/renderer_p.h | |
parent | a768092904a6f294b321a3b8e603be786aabfcb5 (diff) |
Destroy allocators in aspect not the renderer
Otherwise it was creating a weird confusion of responsibility. The
aspect asked for the creation of the allocators while the renderer
itself was asking for their destruction.
Change-Id: Ib06a315b39dc654d5a9bb97d4d2153884c457443
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/backend/renderer_p.h')
-rw-r--r-- | src/render/backend/renderer_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/backend/renderer_p.h b/src/render/backend/renderer_p.h index e39cb46b6..eead65190 100644 --- a/src/render/backend/renderer_p.h +++ b/src/render/backend/renderer_p.h @@ -135,6 +135,7 @@ public: void initialize() Q_DECL_OVERRIDE; void shutdown() Q_DECL_OVERRIDE; void createAllocators(Qt3DCore::QAbstractAspectJobManager *jobManager) Q_DECL_OVERRIDE; + void destroyAllocators(Qt3DCore::QAbstractAspectJobManager *jobManager) Q_DECL_OVERRIDE; void render() Q_DECL_OVERRIDE; void doRender() Q_DECL_OVERRIDE; @@ -162,7 +163,6 @@ public: void setOpenGLContext(QOpenGLContext *context); QGraphicsApiFilter *contextInfo() const; - void destroyAllocators(Qt3DCore::QAbstractAspectJobManager *jobManager); void addAllocator(Qt3DCore::QFrameAllocator *allocator); Qt3DCore::QFrameAllocator *currentFrameAllocator(); |