[osg-users] Forcing a scene to rebind textures
Jannik Heller
scrawl at baseoftrash.de
Mon May 11 14:54:20 PDT 2015
Hi filnet,
>
> Code looks like this
>
> But I still get the invalid enumerant error followed by a crash.
>
there is one missing step in your code - you said you have a detached subgraph. The OSG does not hold any pointers to detached subgraphs, so it can't do the cleanup on its own. Only your application knows where those subgraphs are stored.
So instead of
Code:
view->releaseGLObjects();
You need to
Code:
for all detached subgraphs:
node->releaseGLObjects();
View::releaseGLObjects can only release objects that are currently attached to the root scene graph.
Cheers,
Jannik[/quote][/code]
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=63716#63716
More information about the osg-users
mailing list