[osg-users] GL3: non-GL3 version number: 1.0

Maxim Stere osgforum at tevs.eu
Fri Oct 13 11:20:41 PDT 2017


Hi Robert,

No, problem, happens to all of us. 

I changed the value for OPENGL_PROFILE to GLCORE, but is there a wrong and the right way to do it?

I looked in CMakeLists.txt, and it seems when OPENGL_PROFILE is set to GLCORE all kind of different options get changed. If I edit line 401 from 


Code:

SET(OPENGL_PROFILE "GL2" CACHE STRING "OpenGL Profile to use, choose from GL1, GL2, GL3, GLES1, GLES2, GLES3")




to 

Code:

SET(OPENGL_PROFILE "GLCORE" CACHE STRING "OpenGL Profile to use, choose from GL1, GL2, GL3, GLES1, GLES2, GLES3")




CMake gives me all kinds of errors with missing GL headers and paths. 

If I change it to GLCORE in the CMake GUI, I see no changes or errors. Is it working? Or does it work differently depending on where I set it?

It seems from the CMake code that GLCORE should enable OSG_GL3_AVAILABLE but it does not seem to do that. I tested a prerender example, and it said that it was using GL2 shaders. 

If I manually enable OSG_GL3_AVAILABLE in CMake I get an error with GLCORE_GLCOREARB_HEADER-NOTFOUND

... 

Thank you!

Cheers,
Maxim

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72171#72171







More information about the osg-users mailing list