[osg-users] [Compute Program executed on useprogram :/?!]

Julien Valentin julienvalentin51 at gmail.com
Fri Nov 17 17:31:58 PST 2017

Hi all
I ran into some strange behavior debuging an app: It appears that compute shader are executed at each pcp.useprogram() call...
I don't think it's a correct behavior since uniforms requires the po to be bound before to be set... 
It yield an undefined behavior in GLObjectVisitor when compute prog are executed whithout their uniforms setted  (and the same problem should also appears in State::apply)

I'm gonna pr a patch in order remove dispatchprogram from useprogram and add a if(computeshader)dispatch at the end of state::apply but would like Robert insight about it

Thank you!


Read this topic online here:

More information about the osg-users mailing list