Hi J-S,

> Those first three are weird, seems it can't create a GraphicsWindowWin32 and
> PixelBufferWin32, and the third without an error... I've seen problems
> creating GraphicsWindowWin32 objects programmatically before, the window
> classes are not registered so you need to create one window at startup with
> default traits using GraphicsContext::createGraphicsContext(traits) and then
> doing new GraphicsWindowWin32 will work. Perhaps this is the problem here.
>
> Then the others are also weird, they all report success but gl objects
> applied =0...

All the runs suffer from exactly the same problem - for some reason the

static RegisterWindowingSystemInterfaceProxy
createWindowingSystemInterfaceProxy;

In src/osgViewer/GraphicsWindowWin32.cpp is not constructing and
registering the Win32WindowingSystem as it should.  This problem does
seem vaguely familiar, problems in pbufffe/window construction in
osgconv and osgdem being things that ring a bell.

As a real hack you try manually registering the Win32WindingSystem
object via the C function call (this is there to help out with apps
doing static linking):

extern "C" void graphicswindow_Win32(void);

main(..)
{
...
   graphicswindow_Win32(void);

}

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

Reply via email to