[osg-users] Crash in osg 3.4.0 on Virtual Machine when OSG_GL3_AVAILABLE enabled

Robert Osfield robert.osfield at gmail.com
Wed Mar 9 00:03:35 PST 2016

HI Barney,

The extension check is correct as buffer objects are part of the spec for
GL3, the driver doesn't need to define the ARB extension in this case.

For your own work I would recommend not  selecting GL3, just build the OSG
with defaults and let it check the functionality at runtime.  If your
driver has the features it will detect them at runtime so you shouldn't
loose any functionality.


On 9 March 2016 at 01:26, Barney Wrightson <
barney.wrightson at consilium.technology> wrote:

> Hi,
> I built osg 3.4.0 with OSG_GL3_AVAILABLE enabled and it was working fine
> on my dev box, but when I loaded my app on a virtual machine with not much
> 3D support, It crashed with a null pointer exception in the BufferObject
> constructor at the line (71):
> _extensions->glGenBuffers(1, &_glObjectID);
> glGenBuffers pointer is null.
> In State.cpp the following line (1319) in
> State::computeVertexBufferObjectSupported() :
> _isVertexBufferObjectSupported =  OSG_GLES2_FEATURES || OSG_GL3_FEATURES
> || osg::isGLExtensionSupported(_contextID,"GL_ARB_vertex_buffer_object");
> seems wrong to me, if the driver doesn't support BufferObjects then they
> shouldn't be used right? I am guessing this is the problem because when I
> build without OSG_GL3_FEATURES set (OSG_GLES2_FEATURES is not set either)
> then I don't get the crash on my virtual machine.
> Thanks,
> Barney
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=66500#66500
> _______________________________________________
> 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/20160309/00cf456e/attachment-0002.htm>

More information about the osg-users mailing list