[osg-users] Qt OpenGL Warning opengl

Auke-Dirk Pietersma aukedirk at horus.nu
Mon Apr 25 06:07:58 PDT 2016


Hi All ,

I have the following issue. Whenever i choose to render a scene with opengl greater than 2.1 i get the following messages.

Warning: detected OpenGL error 'invalid enumerant' after applying GLMode 0xb50
Warning: detected OpenGL error 'invalid enumerant' after applying GLMode 0x4000
Warning: detected OpenGL error 'invalid operation' after applying attribute LightModel 

Not only do i obtain these messages, the scene also does not get rendered.

Nothing fancy has been done, see this init snippet:

 graphicsWindow_ = new osgViewer::GraphicsWindowEmbedded( this->x(), this->y(),this->width(),this->height() );
    viewer_ = new osgViewer::Viewer;

    osg::Camera* camera = new osg::Camera;
    camera->setViewport( 0, 0, this->width(), this->height() );
    float aspectRatio = static_cast<float>( this->width()) / static_cast<float>( this->height() );
    camera->setClearColor( osg::Vec4( 0.f, 0.f, 1.f, 1.f ) );
    camera->setProjectionMatrixAsPerspective( 30.f, aspectRatio, 1.f, 1000.f );
    camera->setGraphicsContext( graphicsWindow_ );
    viewer_->setCamera(camera);

    _earthManip = new osgEarth::Util::EarthManipulator;

    viewer_->setCameraManipulator(_earthManip, false);
    viewer_->addEventHandler(new osgViewer::StatsHandler);


    osg::ref_ptr<osg::Group> group = new osg::Group();
    _mapNode = createMapNode();
    group->addChild(_mapNode);
    _earthManip->setNode( _mapNode->getTerrainEngine() );

    viewer_->setSceneData(group.release());

I'm Working on Linux with Qt5.6 on an ATI HAWAII , Radeon R9 Series.

Can someone provide me with some hints/tips?

Regards Auke-Dirk
... 

Thank you!

Cheers,
Auke-Dirk

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








More information about the osg-users mailing list