Thanks Sebastian !

Looks like i found solution:


Code:

bool ProgramIsCompiled(COITPCore *pCre,osg::Program *pPrg)
{
  Camera *pCam = pCre->getCamera();
  int contextID = pCam->getGraphicsContext()->getState()->getContextID();

  for(int i = 0; i < pPrg->getNumShaders(); i++)
  {
    if(!pPrg->getShader(i)->getPCS(contextID)->isCompiled())
      return 0;
  }

  return 1;
}




------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=64980#64980





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to