From dddc7f37eb1460a7f68b6d2510884be087abdafd Mon Sep 17 00:00:00 2001 From: Squareys Date: Fri, 10 Apr 2015 00:58:36 +0200 Subject: [PATCH] doc: add missing BufferUsage parameter. Signed-off-by: Squareys --- src/Magnum/SceneGraph/Drawable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/SceneGraph/Drawable.h b/src/Magnum/SceneGraph/Drawable.h index ae16ce0ce..705905499 100644 --- a/src/Magnum/SceneGraph/Drawable.h +++ b/src/Magnum/SceneGraph/Drawable.h @@ -53,7 +53,7 @@ typedef SceneGraph::Scene Scene3D; class RedCube: public Object3D, public SceneGraph::Drawable3D { public: explicit RedCube(Object3D* parent, SceneGraph::DrawableGroup3D* group): Object3D{parent}, SceneGraph::Drawable3D{*this, group} { - std::tie(_mesh, _vertices, _indices) = MeshTools::compile(Primitives::UVSphere::solid(16, 32)); + std::tie(_mesh, _vertices, _indices) = MeshTools::compile(Primitives::UVSphere::solid(16, 32), BufferUsage::StaticDraw); } private: