diff --git a/src/modules/graphic/osggraph/Car/OsgCar.cpp b/src/modules/graphic/osggraph/Car/OsgCar.cpp index 1717ddc14..38330605f 100644 --- a/src/modules/graphic/osggraph/Car/OsgCar.cpp +++ b/src/modules/graphic/osggraph/Car/OsgCar.cpp @@ -644,7 +644,8 @@ osg::ref_ptr SDCar::loadCar(tCarElt *Car, bool tracktype, bool subcat else this->reflectionMappingMethod = REFLECTIONMAPPING_OFF; - this->shader = new SDCarShader(car_shaded_body.get(), this); + if (_carShader > 0) + this->shader = new SDCarShader(car_shaded_body.get(), this); this->reflectionMapping = new SDReflectionMapping(this); this->setReflectionMap(this->reflectionMapping->getReflectionMap());