[osg-users] Correct place to check shader compile errors
'James Turner' via OpenSceneGraph Users
osg-users at googlegroups.com
Wed Feb 24 10:04:15 PST 2021
I’m trying to extract shader compile and link info logs at runtime, so I
can log+report them.
I note osg::Program::getGlProgramInfoLog exists, obviously it takes a
context ID since the PerContextProgram is what has the actual errors.
Two things I need help with:
1) does the program log also contain shader compile errors, or is this only
the link log? I don’t see a corresponding APi on osg::Shader, is why I ask
2) *when* can I call the log functions and expect to get valid results?
Given the OSG drawing model, obviously the log won’t be available
immediately when creating the Program.. Do I need to use a DrawCallback to
check the log after the first time the Program has been used?
I looked for examples of using getGlProgramInfoLog but unfortunately
couldn't find any, maybe pointing me at one would answer both of these
points.
--
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/437023da-c7b2-4bfb-a6b9-6d6613236e04n%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20210224/6803ffd0/attachment.html>
More information about the osg-users
mailing list