only using cache-first logic if caching features

This commit is contained in:
Dane Springmeyer 2010-07-21 00:43:13 +00:00
parent 1ecdba1965
commit 8b66c34eca

View file

@ -273,14 +273,21 @@ private:
// process features
featureset_ptr fs;
if (first)
if (cache_features)
{
first = false;
fs = ds->features(q);
if (first)
{
first = false;
fs = ds->features(q);
}
else
{
fs = cache.features(q);
}
}
else
{
fs = cache.features(q);
fs = ds->features(q);
}
if (fs)