Hi Marco, This screams drive bug to me - calling make current twice in succession on the same thread should do nothing as the second call should be a non op. It is of course pretty dumb calling make current twice in quick succession on the same thread, but this were required due to an earlier bug on NVidia Windows drivers which thankfully has now been fixed in recent drivers.
Kinda bizarre that a workaround for an NVidia driver bug breaks other version of NVidia drivers... Are they deliberately trying to break the OSG in any which way they can? This does suggest that it's time to set this workaround to off by default. Perhaps a better approach for this workaround would be to have a bool in GraphicsWindowWin32 that can be set at runtime, rather than something that is compiled in. This would allow driver version detection in clients apps that feel they need this workaround. An env var could also enable it too. Robert. On Tue, Nov 11, 2008 at 10:00 AM, Marco Jez <[EMAIL PROTECTED]> wrote: > Hi, > > on a fresh build of latest OSG with default configuration options, all > examples and applications based on osgViewer crash if any of the > multi-threading modes are enabled (including the default one). This happens > on Vista x64 with an nVIDIA GeForce 8800 GT card and latest drivers > (178.24). I've also tested on another Vista system with a GeForce 6800 and > less recent video drivers. > > The crash takes place in GraphicsWindowWin32.cpp at line 1701, when > wglMakeCurrent() is called, but only if > OSG_MULTIMONITOR_MULTITHREAD_WIN32_NVIDIA_WORKAROUND is defined (which is > the default). The reason seems obscure to me, and I wouldn't classify it as > a bug, since the workaround code is just that: a workaround for a driver > bug. I just wanted to report that applications built with this workaround > enabled will probably work fine on XP (and maybe Vista 32) but will crash on > Vista x64, at least under conditions similar to those of my two systems. > > Cheers, > Marco > > _______________________________________________ > osg-users mailing list > firstname.lastname@example.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list email@example.com http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org