I figured it out. Turns out I needed to set the source format of my render 
texture to GL_RGBA. Its interesting because if I had set the texture's internal 
format to GL_RGBA it would have worked because when the source format is not 
set the osg::Texture2D class uses the internal format as the pixel format in 
the call to glTexImage2D, which is valid for an internal format of GL_RGBA, but 
not for GL_RGBA8 because the former can be used as both an internal format and 
a pixel format, but the latter can not.

I've see this issue with other using the incorrect usage of GL_RGBA8 (and 
GL_RGBA16) in other areas within the osg::Texture2D class - see my thread:

http://forum.openscenegraph.org/viewtopic.php?t=9879

Alex[/url]

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to