Hi,

I get a flickering problem on windows xp when I display a full screen window 
with a smaller viewport and without window decoration. The rendering inside the 
viewport is ok, but the rest of the screen is flickering and I can see my 
desktop as the background. I don't have this problem when I'm using the window 
decoration.

Here's a sample of the code:
--------------------------------------------
osg::ref_ptr<osg::GraphicsContext::Traits> traits = new 
osg::GraphicsContext::Traits;
traits->x = 0;
traits->y = 0;
traits->width = 1280;
traits->height = 1024;
traits->windowDecoration = false;  // Is flickering when turned to false
traits->doubleBuffer = true;
traits->sharedContext = 0;
    
osg::ref_ptr<osg::GraphicsContext> gc = 
osg::GraphicsContext::createGraphicsContext(traits.get());
viewer.getCamera()->setGraphicsContext(gc.get());
srcUnit->viewer.getCamera()->setViewport( new osg::Viewport(100, 100, 640, 480) 
);
---------------------------------------------

I get the same problem when instead using:
---------------------------------------------
viewer.realize();  // Fullscreen mode by default without windowDecoration 
viewer.getCamera()->setViewport( new osg::Viewport(100, 100, 640, 480) );
---------------------------------------------

Any clues?

Thanks in advance,
J-A


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

Reply via email to