[osg-users] Core Profile: glEnable/glDisable GL_POINT_SPRITE

Damian Dixon damian.dixon at gmail.com
Sun Jul 29 06:23:40 PDT 2018


I have a build of OSG 3.6.2 for GLCORE for Mesa 18.0.5, Intel HD Graphics

I am seeing a lot of warnings/errors around the use of PointSprite.

The warnings/errors are (once per PointSprite):

Warning: detected OpenGL error 'invalid enumerant' at after
Mesa: User error: GL_INVALID_ENUM in glEnable(GL_POINT_SPRITE)

The Intel Mesa i965 driver is fairly strict with regards to Core Profile
and does
not provide a compatibility profile.

I'm using osgEarth so I have to build for Core Profile for osgEarth to work.

I've looked at trying to add additional logic to stop OSG from calling
glEnable/glDIsable for GL_POINT_SPRITE but I can't see a sensible place to
disable calling to glEnable/glDisable.

Core Profile says that GL_POINT_SPRITE is always on so I believe that all
that needs to be done is to not call glEnable/glDisable for GL_POINT_SPRITE.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180729/2a713bdf/attachment.html>

More information about the osg-users mailing list