[osg-users] StateSet::compileGLObjects miss typing

Jannik Heller scrawl at baseoftrash.de
Fri Nov 25 16:14:08 PST 2016

Hi LiChi,

You are correct, this is a mistake that needs to be fixed, the following for-loop is not even executed unless checkForGLErrors is true.

In fact, I've just spent an hour or so debugging a weird "Invalid operation" GL-error and it turned out to be caused by exactly this bug - the StateSet not compiling its state was causing the useProgram() in the GLObjectVisitor to fail as the program had not been compiled as expected.

I've submitted a fix for this here: https://github.com/openscenegraph/OpenSceneGraph/pull/169


Read this topic online here:

More information about the osg-users mailing list