]> git.mxchange.org Git - simgear.git/commit
Crash fix: use cache to find materials.
authorJames Turner <zakalawe@mac.com>
Mon, 6 Jan 2014 08:26:42 +0000 (08:26 +0000)
committerJames Turner <zakalawe@mac.com>
Mon, 6 Jan 2014 08:26:48 +0000 (08:26 +0000)
commitbecbad7ea4719e5001f88cdc25328133b44b5ea2
tree74330e8fe4420b851113305e69479806772c7180
parent2335796a28dffe7392e14b43049e2192424d535c
Crash fix: use cache to find materials.

Add a thread-safe cache of the currently valid materials, to avoid
the osgDB thread making repeated SGCondition evaluations in conflict
with the main thread.

(Requires an accompanying FG change)
simgear/scene/material/matlib.cxx
simgear/scene/material/matlib.hxx
simgear/scene/tgdb/SGOceanTile.cxx
simgear/scene/tgdb/obj.cxx