On 21.08.2017 14:16, Robert Osfield wrote:
Hi Sandro,
I'm torn on whether to fallback to using the
DisplaySettings:instance() when DisplaySettings isn't explicitly
specified. Defaulting to using DisplaySettings::instance() has the
advantage of forcing a particular graphics context version and other
parameters from one place. Conversely it could be a real issue for
some applications that assume that the values will just be straight
defaults without picking anything else up implicitly - we could
inadvertently break their applications. These changes in behaviour
could be quite difficult to trace as the application would just
compile and link as before, but now has different behaviour.
Given this I we'll need to be really careful about making the
default. I don't yet have any clear direction on it. Will need to
think some more.
Hi Robert
A less invasive alternative could be to introduce a new singleton called
OpenGLSettings or similar which contains just the three settings
glContextVersion, glContextFlags, glContextProfileMask.
Best
Sandro
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org