[osg-users] Specifying the GL context version to request

Sandro Mani manisandro at gmail.com
Mon Aug 21 05:21:54 PDT 2017



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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170821/94c28dc7/attachment.htm>


More information about the osg-users mailing list