HI Filip, I don't know whether it'll help with your case, but it's worth trying, there are fixes in svn/trunk and OSG-3.2 for handling osg::Program combinations in GLObjectVisitor/IncrementalCompileOperation so I'd recommend you try one of these versions of the OSG to see if that helps.
Robert. On 28 February 2014 16:02, Filip Arlet <fili...@seznam.cz> wrote: > Hi, > > I have problem with osg::Program and osgViewer::Renderer::compile(). I have > scene graph with shader only for some part of it. But when display lists are > compiled, shader is always active. Its geometry shader with LINES as input so > any other geometry will raise opengl error. > Shader even remains active after compile. So if I draw scene without my LINES > with geometry shader. It still produces the same error. Only after first > encounter of my LINES with shader, it fixes. Any suggestions ? > > PS: > 1) When I add blank osg::Program() on root node, it obviosly fixes the > initial rendering problem, but not problems during compile operation. > 2) I dont want to give up on Display Lists since I found that implementation > of VBO has bugs on some Intel and Ati(Amd) implementation and its major > problem customers. > > Thank you! > > Cheers, > Filip > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=58401#58401 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org