set DYNAMIC variance on gui and hud/2dpanel drawables
This commit is contained in:
parent
6fcd9f967b
commit
124713b136
1 changed files with 2 additions and 0 deletions
|
@ -138,6 +138,7 @@ public:
|
||||||
{
|
{
|
||||||
// Dynamic stuff, do not store geometry
|
// Dynamic stuff, do not store geometry
|
||||||
setUseDisplayList(false);
|
setUseDisplayList(false);
|
||||||
|
setDataVariance(Object::DYNAMIC);
|
||||||
|
|
||||||
osg::StateSet* stateSet = getOrCreateStateSet();
|
osg::StateSet* stateSet = getOrCreateStateSet();
|
||||||
stateSet->setRenderBinDetails(1001, "RenderBin");
|
stateSet->setRenderBinDetails(1001, "RenderBin");
|
||||||
|
@ -183,6 +184,7 @@ public:
|
||||||
{
|
{
|
||||||
// Dynamic stuff, do not store geometry
|
// Dynamic stuff, do not store geometry
|
||||||
setUseDisplayList(false);
|
setUseDisplayList(false);
|
||||||
|
setDataVariance(Object::DYNAMIC);
|
||||||
|
|
||||||
osg::StateSet* stateSet = getOrCreateStateSet();
|
osg::StateSet* stateSet = getOrCreateStateSet();
|
||||||
stateSet->setRenderBinDetails(1000, "RenderBin");
|
stateSet->setRenderBinDetails(1000, "RenderBin");
|
||||||
|
|
Loading…
Add table
Reference in a new issue