Hi,

I'm getting the same errors with 1.2 while playing with depth-shadow FBO. It 
shows up when accessing the texture set up as  GL_DEPTH_COMPONENT with a 
Texture2D sampler and texture2D(unit, gl_coords[0]) function. The error does 
not show up if I use Shadow2D sampler and shadow2D() access function.

I suspect that the compiler for GLSL is more strict about matching the 
samplers used with the declared format of the texture.
Check for any inconsistencies between the shaders and application in regards 
with texture access.

It would be nice if osg::setNotifyLevel(); could enable more information from 
the GLSL compiler to be able to trace more of these errors, or just have more 
info coming in from it to help with shader development.

Hope this helps.

-- 
Mihai Radu
cm-labs.com

On Wednesday 13 September 2006 22:07, [EMAIL PROTECTED] wrote:
>   I upgraded to OSG 1.2 today.  I am now consistently getting the following
> error message whenever I use FBO's:
>
>  "Warning: detected OpenGL error 'invalid operation' after
> RenderBin::draw(,)"
>
>  I would get this occasionally (1% of the time) with v1.1 but now I am
> getting it EVERY time with v1.2.  I assume there is something that I am
> doing wrong, but as I "see" no problems with the rendered scene, I was
> wondering what types of operations could be causing this or what I could do
> to attempt to track it down.  Particularly, what operations would cause an
> error on the FBO that wouldn't cause an error for a normally rendered
> scene? Were there any changes to the RenderBin which would cause v1.2 to
> catch an error that v1.1 would not consistently catch?  Any help would be
> appreciated!
>
>  Thanks!
>
>
>
> ---------------------------------
> Do you Yahoo!?
>  Get on board. You're invited to try the new Yahoo! Mail.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to