Skip to content

Commit 839472a

Browse files
committed
[render] fix missing swap member in opengl DrawableMesh
1 parent 1a79699 commit 839472a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

vclib/render/include/vclib/opengl2/drawable/drawable_mesh.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,20 @@ class DrawableMeshOpenGL2 : public AbstractDrawableMesh, public MeshType
106106
bindTextures();
107107
}
108108

109+
void swap(DrawableMeshOpenGL2& other)
110+
{
111+
using std::swap;
112+
AbstractDrawableMesh::swap(other);
113+
MeshType::swap(other);
114+
swap(mMRD, other.mMRD);
115+
swap(mTextID, other.mTextID);
116+
}
117+
118+
friend void swap(DrawableMeshOpenGL2& a, DrawableMeshOpenGL2& b)
119+
{
120+
a.swap(b);
121+
}
122+
109123
// DrawableObject implementation
110124

111125
void init() override { bindTextures(); }

0 commit comments

Comments
 (0)