Hi Alex,

ok, this is of course pretty bad. 

Actually,  I think the correct way would be to apply the texture to the 
osg::State within the FBO::apply(). This would ensure that the state is tracked 
correctly. Of course, unfortunately this requires a patch to the main osg core. 

In general, I think this might be a general osg problem, since in order to 
generate texture within FBO::apply() one need to make sure that current texture 
binding is not overwritten. I think, I will try to rewrite your patch here 
slightly to ensure correct work of osgPPU, but we should keep in mind, that we 
might need a patch for OSG as well.

Cheers,
art



airion wrote:
> Hello Art,
> 
> glPushAttrib / glPopAttrib works as well, but it's not available in GLES and 
> I also use osgPPU with GLES. However in GLES there are no 3D textures, only 
> 2D and cube maps.
> 
> Regards,
> --Alex


------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43941#43941





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to