Hi,

When I launch my osg app this morning, I've got this error while creating the 
graphic context : 
> Win32WindowingSystem::getScreenInformation() - The screen identifier on the 
> Win32 platform must always use display number 0. Value received was 15
> Error: [screen #0] GraphicsWindowWin32::setPixelFormat() - No matching pixel 
> format found base on traits specified


I really do not understand because yesterday it worked perfectly ...


Code:
osg::GraphicsContext::WindowingSystemInterface* wsi = 
osg::GraphicsContext::getWindowingSystemInterface();
assert(wsi);

unsigned int width, height;
wsi->getScreenResolution(osg::GraphicsContext::ScreenIdentifier(0), width, 
height);

osg::ref_ptr<osg::GraphicsContext::Traits> traits = new 
osg::GraphicsContext::Traits;
traits->x = 0;
traits->y = 0;
traits->width = width;
traits->height = height;
traits->windowDecoration = false;
traits->doubleBuffer = true;
traits->sharedContext = 0;
        
osg::ref_ptr<osg::GraphicsContext> gc = 
osg::GraphicsContext::createGraphicsContext(traits.get());      
assert(gc.valid());



I tried to reboot my computer, but it always the same. Do you have any ideas ?

Thank you!

Cheers,
Sebastien

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





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to