|
osg::ref_ptr<osg::Camera>master=new osg::Camera;
master->setGraphicsContext (gc);
master->setViewport (0,0,800,600);
viewer->addSlave(master.get());
osg::ref_ptr <osg::Camera>rttCamera=new osg::Camera;
rttCamera->setRenderOrder (osg::Camera :RE_RENDER);
rttCamera->setGraphicsContext (gc);
rttCamera->setViewport (0,0,800,600);
rttCamera->addChild (osgDB::readNodeFile ("ceep.ive"));
viewer->addSlave (rttCamera,false);
代码加上viewer->addSlave(rttCamera,flase)就出现DEBUGdetected OPENGL Error 'invalid value' at start os State::apply<>是哪里出错了
|
|