From b2a6cdec4e52f9b27293dcbc387cd5c99d2b7acb Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Fri, 20 Jul 2012 00:32:22 +0200 Subject: [PATCH] change optimizer options for models Tristrips are old and busted, index meshes are the new hotness :) --- simgear/scene/model/ModelRegistry.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/simgear/scene/model/ModelRegistry.cxx b/simgear/scene/model/ModelRegistry.cxx index d65efbb0..58c5bc37 100644 --- a/simgear/scene/model/ModelRegistry.cxx +++ b/simgear/scene/model/ModelRegistry.cxx @@ -314,7 +314,9 @@ OptimizeModelPolicy::OptimizeModelPolicy(const string& extension) : _osgOptions(Optimizer::SHARE_DUPLICATE_STATE | Optimizer::MERGE_GEOMETRY | Optimizer::FLATTEN_STATIC_TRANSFORMS - | Optimizer::TRISTRIP_GEOMETRY) + | Optimizer::INDEX_MESH + | Optimizer::VERTEX_POSTTRANSFORM + | Optimizer::VERTEX_PRETRANSFORM) { }