Hi,
I recently added a call validateAllGLObjects() after our scene load, to
make sure everything runs smoothly from frame 1.
However, this has lead to some problems and I don't know where to search
for this.
We use QT4, QGLWidget and PassiveWindow, so I've added the following
function which ought to do the trick:
void OpenSGWidget::validateAllGLObjects()
{
makeCurrent();
// remove DrawEnv object once our OpenSG has been updated to
include
// http://opensg.vrsource.org/trac/changeset/1849
OSG::DrawEnv env;
env.setWindow(_window);
_window->validateAllGLObjects(&env);
}
However, recently it has started to cause our shader objects to fail
with the following repeated about 20-30 times in the log: (we have our
own log system that we pipe OpenSG's log stream through)
31.971 [error] 1 OpenSG : Couldn't link vertex and fragment
program!
31.971 [error] 1 OpenSG : Link info
31.971 [error] 1 OpenSG : ---------
31.971 [error] 1 OpenSG : No shader objects attached.
And the shaders aren't there. With the validate-call disabled, it works.
AFAKT, we do not modify any shaderchunks' programs after our validate
call, everything should be set up before that.
Any ideas where to start looking?
Cheers,
/Marcus
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users