Reduce minimum required OpenGL version from 3.3.0 to 2.1.0, and other fixes #3
1 changed files with 2 additions and 1 deletions
|
@ -644,6 +644,7 @@ osg::ref_ptr<osg::Node> SDCar::loadCar(tCarElt *Car, bool tracktype, bool subcat
|
||||||
else
|
else
|
||||||
this->reflectionMappingMethod = REFLECTIONMAPPING_OFF;
|
this->reflectionMappingMethod = REFLECTIONMAPPING_OFF;
|
||||||
|
|
||||||
|
if (_carShader > 0)
|
||||||
this->shader = new SDCarShader(car_shaded_body.get(), this);
|
this->shader = new SDCarShader(car_shaded_body.get(), this);
|
||||||
|
|
||||||
this->reflectionMapping = new SDReflectionMapping(this);
|
this->reflectionMapping = new SDReflectionMapping(this);
|
||||||
|
|
Loading…
Reference in a new issue