The way this works is that the nVidia driver (OpenGL or DirectX) is looking for this export symbol in the binary that it's linked against. Whenever it is found, the driver prefers the nVidia graphics card over Intel.
I do not think that the binary file in question (i.e. the OSG library, or the program using OSG) is able to control at run time whether or not this export symbol will be visible to the driver. Christian 2014-11-25 16:59 GMT+01:00 Robert Osfield <[email protected]>: > Hi Christian, > > On 25 November 2014 at 15:38, Christian Buchner < > [email protected]> wrote: > >> the problem with this export symbol is that it is a compile time option, >> not a run time option. So the only way to configure its use might be >> through a platform specific CMAKE option. >> > > Could you not get the symbol dynamically? Currently osgDB::DynamicLibrary > has a method for getting a proc address, but not a global variable. > > Robert. > > > > > > > _______________________________________________ > osg-submissions mailing list > [email protected] > > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > >
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
