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.
Christian 2014-11-25 16:23 GMT+01:00 Robert Osfield <[email protected]>: > Hi Christian, > > On 25 November 2014 at 15:06, Christian Buchner < > [email protected]> wrote: > >> this "hack" forces the nVidia card to be preferred on mobile Windows >> systems equipped with an Intel/nVidia combo on the mainboard - also known >> as nVidia Optimus (TM). Putting an #if WIN32 around it might work. >> > > It doesn't belong in an example on tessellation shaders. These types of > platform specific hacks might deserve their own attention, perhaps even as > a option in osg::DisplaySettings, but that's something for a wider > discussion of how to handle things like this. > > 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
