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

Robert Osfield robert.osfield at gmail.com
Sun Jul 29 07:28:02 PDT 2018

Hi Damian,

The glEnable/glDisable will be done directed by your scene graph via
the StateSet::setMode(GLenum,..), so simply remove the

On Sun, 29 Jul 2018 at 14:24, Damian Dixon <damian.dixon at gmail.com> wrote:
> Hi,
> I have a build of OSG 3.6.2 for GLCORE for Mesa 18.0.5, Intel HD Graphics 620.
> 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 RenderBin::draw(..)
> 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.
> Regards
> Damian
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list