[osg-users] GL3 Profile

Robert Osfield robert.osfield at gmail.com
Tue Jun 26 00:01:20 PDT 2018

HI Maxum,

On Mon, 25 Jun 2018 at 21:29, Maxim Stere <osgforum at tevs.eu> wrote:
> It does not work like that on windows. Windows by default does not come with gl3.h or GLcorearb.h and neither does Visual Studio, so you need to install extra dependencies to make the OSG GL3 or GLCORE profiles to work. Otherwise you get errors when you select them as an option and try to build.
> This prevents people from using the GL3 profile and GL3 graphics context because OSG will create and report a lower context version. Also if they want to have no older functions and turn off the fixed function pipeline they now have to do it manually through multiple cmake options instead of just defining OPENGL_PROFILE to GL3.
> So the fix I can make is change the CMake script to use the modern default windows GL headers which will enable people to use the GL3 profile option, and configure cmake to disable everything that needs to be turned off in that case. I can make a PR if that makes sense.

As far as I'm aware VS just installs ancient GL headers, are you just
suggestion that you want to combine the OSG's fallbacks for these
ancient headers but with the OSG selecting just the GL3 code paths.

Are you suggestion another OPENGL_PROFILE path?  Something like
GL3_WINDOWS?  We can't break what is there already so if you want to
do something different then it has to be "yet another workaround for
the mess of different combinations of what should be standard".


More information about the osg-users mailing list