OpenSceneGraph icon indicating copy to clipboard operation
OpenSceneGraph copied to clipboard

glPointSize(_size) in Point::apply(State& state) is NOT applied

Open deping opened this issue 3 years ago • 2 comments

glPointSize(_size) in Point::apply(State& state) is NOT applied when OSG_GL_FIXED_FUNCTION_AVAILABLE is not defined. glPointSize function is always available in all OpenGL version.

OSG version: 3.6.2

deping avatar Mar 04 '21 06:03 deping

This code was likely originally in there to prevent issues with porting to GLES. Searching GL specs it does look like it's available, but haven't found whether it's available for GLES1.x. Looks like it's available for GLES2.x though.

A quick only search doesn't provide a clear mapping of what parts of the glPointParameters usage is available.

robertosfield avatar Mar 04 '21 09:03 robertosfield

glpointsize is available in vertex shader gl_pointsize when OSG_GL_FIXED_FUNCTION_AVAILABLE is not defined

mp3butcher avatar Mar 05 '21 13:03 mp3butcher