[osg-users] GL Error vulnerability in OSG 3.4.0 (invalid enum)

Robert Osfield robert.osfield at gmail.com
Thu Jun 30 08:38:35 PDT 2016


Hi Rick,

If we need to protect the testing of certain features for certain drivers
then glVersion number probably isn't sufficient as we have GL and GLES
versions to consider.

Another thing we'd need to do is provide a fallback in case we don't set
the associated values.

BTW, what platform and GL versions are you seeing issus with?

Robert.

On 30 June 2016 at 16:34, Rick Irons <Rick.Irons at mathworks.com> wrote:

> Hi,
>
>
>
> openscenegraph/src/osg/GLExtensions.cpp should probably be checking the
> OpenGL version prior to using the GL_MAX_3D_TEXTURE_SIZE and
> GL_MAX_ARRAY_TEXTURE_LAYERS_EXT enums (see change below).  Otherwise, such
> calls will generate GL errors when using older versions of OpenGL.  Any
> concerns with such a change?
>
>
>
> Thanks,
>
> Rick
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160630/ce15e5c5/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 74127 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160630/ce15e5c5/attachment-0003.png>


More information about the osg-users mailing list