Re: [osg-users] Correct place to check shader compile errors

2021-02-24 Thread Wojciech Lewandowski
Hi James, Its not direct answer to your questions but a code snippet overloading Program which I used to change shader variant depending on compilation/link result (from most advanced to more basic fallbacks). This approach was quite simple I tested Program compilation result (including

[osg-users] Correct place to check shader compile errors

2021-02-24 Thread 'James Turner' via OpenSceneGraph Users
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