[osg-users] GL profiles issues on Windows
Robert Osfield
robert.osfield at gmail.com
Wed Sep 5 02:36:11 PDT 2018
Hi Riccardo,
On Wed, 5 Sep 2018 at 10:23, Riccardo Corsi <riccardo.corsi at kairos3d.it> wrote:
> Now what I'd like to do (on Win only) is to use libA and libB together.
> To do so I expected it was enough to add the OSG_GL3_AVAILABLE flag to build OSG and to request a Compatibility GL context.
> What happens instead is that I don't see anything of what libA is supposed to render, even though I don't get any GL error on the console.
I you are just building the OSG with defaults, so will provide a
compatibility profile. then the OSG at runtime will check for all the
GL3/GL4 features and allow you to use this, you don't need to
explicitly enable them via OSG_GL3_AVAILABLE.
For compatibility with OSX then you'll need to use the CMake option of
OPENGL_PROFILE=GLCORE.
If you create an application that works with GLCORE then this same
application will build and run just fine on the OSG built with
defaults.
Robert.
More information about the osg-users
mailing list