1
0
Fork 0

set DYNAMIC variance on gui and hud/2dpanel drawables

This commit is contained in:
Tim Moore 2009-12-02 07:27:23 +01:00
parent 6fcd9f967b
commit 124713b136

View file

@ -138,6 +138,7 @@ public:
{
// Dynamic stuff, do not store geometry
setUseDisplayList(false);
setDataVariance(Object::DYNAMIC);
osg::StateSet* stateSet = getOrCreateStateSet();
stateSet->setRenderBinDetails(1001, "RenderBin");
@ -183,6 +184,7 @@ public:
{
// Dynamic stuff, do not store geometry
setUseDisplayList(false);
setDataVariance(Object::DYNAMIC);
osg::StateSet* stateSet = getOrCreateStateSet();
stateSet->setRenderBinDetails(1000, "RenderBin");