mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 04:15:33 +00:00
Fix render order for markers
This commit is contained in:
parent
556117f6e6
commit
1cd539bad2
1 changed files with 1 additions and 1 deletions
|
@ -390,7 +390,7 @@ osg::ref_ptr<osg::Node> CSVRender::Object::makeRotateMarker (int axis)
|
||||||
|
|
||||||
void CSVRender::Object::setupCommonMarkerState(osg::ref_ptr<osg::Geometry> geometry)
|
void CSVRender::Object::setupCommonMarkerState(osg::ref_ptr<osg::Geometry> geometry)
|
||||||
{
|
{
|
||||||
const int RenderBin = osg::StateSet::TRANSPARENT_BIN - 1;
|
const int RenderBin = osg::StateSet::TRANSPARENT_BIN;
|
||||||
|
|
||||||
osg::ref_ptr<osg::StateSet> state = geometry->getOrCreateStateSet();
|
osg::ref_ptr<osg::StateSet> state = geometry->getOrCreateStateSet();
|
||||||
state->setMode(GL_LIGHTING, osg::StateAttribute::OFF);
|
state->setMode(GL_LIGHTING, osg::StateAttribute::OFF);
|
||||||
|
|
Loading…
Reference in a new issue