Skip to content

Commit

Permalink
viewer: doc++.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed May 9, 2015
1 parent 22702d7 commit 86d67a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/viewer.dox
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ When the import is done, we clear all material data (as they were copied into
object instances) and free all unreferenced data by calling
@ref ResourceManager::free(). Note that we're not doing that for buffers, as
they are referenced only internally from Mesh and thus the manager would free
them all, causing dangling memory references and crash later.
them all, causing dangling memory references and crash later. Better solution
might be to filter-out the unused data before actually importing them, but
that's out of scope of this example.
@dontinclude viewer/ViewerExample.cpp
@skip _resourceManager.setFallback<Trade::PhongMaterialData>(nullptr)
@until .free<Mesh>();
Expand Down

0 comments on commit 86d67a1

Please sign in to comment.