X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscene%2Ftgdb%2Fpt_lights.cxx;h=5b7cf375e1546e0fc5a863b1d418b1118660ff22;hb=9f9c4cf32c2cf774c7febd7fe2b4e65a7d205294;hp=bfe3c5ae963544aaab92c694afc79d79cdce94e3;hpb=0ede690580d5dc955c30002ae44f35904bc31c16;p=simgear.git diff --git a/simgear/scene/tgdb/pt_lights.cxx b/simgear/scene/tgdb/pt_lights.cxx index bfe3c5ae..5b7cf375 100644 --- a/simgear/scene/tgdb/pt_lights.cxx +++ b/simgear/scene/tgdb/pt_lights.cxx @@ -194,7 +194,7 @@ Effect* getLightEffect(float size, const Vec3& attenuation, point->setDistanceAttenuation(attenuation); attenuationPass->setAttributeAndModes(point); Pass *spritePass = clone(basicPass, CopyOp::SHALLOW_COPY); - spritePass->setTextureAttributeAndModes(0, pointSprite, + spritePass->setTextureAttributeAndModes(0, pointSprite.get(), osg::StateAttribute::ON); Texture2D* texture = gen_standard_light_sprite(); spritePass->setTextureAttribute(0, texture);