Hi Damian,

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

Robert.
On Sun, 29 Jul 2018 at 14:24, Damian Dixon <[email protected]> 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
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to