Thanks Chris, changes merged and submitted to OSG master.

On 11 September 2017 at 17:42, Colin McDonald <cjmcdonal...@gmail.com> wrote:
> Hi Robert,
>
> If the glCreateProgram in osg::Program fails for any reason, then
> subsequently
> Program::PerContextProgram::linkProgram would crash.  I've put in some
> checks to prevent that.
>
> The problem affected fixed-function applications which don't use shaders
> themselves, because osgText::Font now tries to create some built-in shaders.
> They are created based on compile-time defines (OSG_GL2_AVAILABLE etc),
> whereas the display capability for a deployed application at run-time may
> not support that.  So we need to handle the glCreateProgram failing.
>
> Attached is an update to src/osg/Program.cpp from the current master branch.
>
> Regards
>
> Colin McDonald
>
>
> _______________________________________________
> osg-submissions mailing list
> osg-submissions@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
_______________________________________________
osg-submissions mailing list
osg-submissions@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to