diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2016-10-11 11:29:00 +0200 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2017-01-23 16:07:02 +0000 |
commit | a477a3a1c47b6016260704e7d770eae57cd48d68 (patch) | |
tree | 494b4a5ef0eab6f7db91edc578d88c83dbaf3df1 /src/render/backend/nodemanagers.cpp | |
parent | 7e6d78e2cc647f1fe1a66a9350e6a39574212e72 (diff) |
NodeManagers: fix invalid template specialization
When we changed the way we handled VAO by creating the OpenGLVertexArrayObject
class (which is a wrapper around QOpenGLVertexArrayObject), we adjusted the
VAOManager to store OpenGLVertexArrayObject instead of
QOpenGLVertexArrayObject pointers, the template specialization was not
properly updated.
This patch fixes that by using in the specialization the type that is actually
being stored by the manager.
Change-Id: I1b5fd20a1dddf4a8429aafdce4cc35488e77a379
Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
Diffstat (limited to 'src/render/backend/nodemanagers.cpp')
-rw-r--r-- | src/render/backend/nodemanagers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/backend/nodemanagers.cpp b/src/render/backend/nodemanagers.cpp index 0234db979..e9b2abc3a 100644 --- a/src/render/backend/nodemanagers.cpp +++ b/src/render/backend/nodemanagers.cpp @@ -154,7 +154,7 @@ MatrixManager *NodeManagers::manager<QMatrix4x4*>() const Q_DECL_NOTHROW } template<> -VAOManager *NodeManagers::manager<QOpenGLVertexArrayObject*>() const Q_DECL_NOTHROW +VAOManager *NodeManagers::manager<OpenGLVertexArrayObject>() const Q_DECL_NOTHROW { return m_vaoManager; } |