Hi Wojciech, On Mon, May 12, 2008 at 4:33 PM, Wojciech Lewandowski <[EMAIL PROTECTED]> wrote: > I may test if GL_VENDOR string contains "NVidia" word (case insensitive). > and GL_RENDERER contains "GeForce" and sometthing that fits "6??0", > "7??0", "8??0" paterns. > > I don't know if there are extensions which would allow me to read drivers > version. GL_VERSION doesn't seem appropriate - it reports OpenGL version. Of > course I could try to look for NVOPENGL.dll and check its version but this > sounds like a recipee for trouble in the future. > > I may also try to figure out if Windows is XP. > > If above is OK I will implement it and send a submission.
GraphicsWindowWin32 only exists under Windows, and given that make current is so rarely called and calling it twice with the same value won't break anything I'd suggest we just integrate your hack without any extra checks. As I mentioned before the extra checks could well introduce bugs of their own so I'd be very cautious of doing it when the actual gain will be negligible in terms of performance. So I'd suggest merge your change as is. I was hoping for a bit more feedback from other Windows users before merging though... Robert. _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org