X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscene%2Ftgdb%2FSGOceanTile.cxx;h=59083b90f5ade98e527ec7126f07f8c894dcb077;hb=d4c7e950927b1e19a7a7622a7919f32233a6b7a8;hp=af1dddf4914e46719b92bac6656395e4d2f7ba4e;hpb=6c30f6269388c8eb4b850e4817567c06f79c8d80;p=simgear.git diff --git a/simgear/scene/tgdb/SGOceanTile.cxx b/simgear/scene/tgdb/SGOceanTile.cxx index af1dddf4..59083b90 100644 --- a/simgear/scene/tgdb/SGOceanTile.cxx +++ b/simgear/scene/tgdb/SGOceanTile.cxx @@ -298,11 +298,11 @@ osg::Node* SGOceanTile(const SGBucket& b, SGMaterialLib *matlib) + 2 * (latPoints - 1))); fillDrawElementsWithApron(latPoints, lonPoints, drawElements->begin()); geometry->addPrimitiveSet(drawElements); + geometry->setStateSet(stateSet); osg::Geode* geode = new osg::Geode; geode->setName("Ocean tile"); geode->addDrawable(geometry); - geode->setStateSet(stateSet); osg::MatrixTransform* transform = new osg::MatrixTransform; transform->setName("Ocean");