[osg-users] GL profiles issues on Windows

Riccardo Corsi riccardo.corsi at kairos3d.it
Wed Sep 5 02:22:50 PDT 2018


Hi Robert,

thanks for your reply but I probably didn't explain clearly my issue.

Say I have:
- libA (using only GL Core features, because I want to use this lib also on
Mac)
- libB (using also GL 2.x features, target Win only)

If I compile and use only libA against osg built with GLCORE profile,
everything works both on Win and Mac.

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.
Riccardo


On Wed, Sep 5, 2018 at 9:27 AM Robert Osfield <robert.osfield at gmail.com>
wrote:

> Hi Riccardo,
>
> The OSG_GL*_AVAILABLE flags are the lower level switches, if you want
> a core profile with none of the fixed funcion pipeline then the
> OSG_GL1 + GL2_AVAILABLE will need to be OFF.  There are other controls
> as well.
>
> The best way to get everything set correct is to run CMake with
> OSG_GL_PROFILE set to GLCORE, this high level mechanisn will set all
> the low level stuff you need.
>
> Cheers,
> Robert.
> On Tue, 4 Sep 2018 at 21:44, Riccardo Corsi <riccardo.corsi at kairos3d.it>
> wrote:
> >
> > Hi all,
> >
> > I have some osg-based libraries that are addressing only GL3+ Core
> profile functionalities, as I need them to work on Mac.
> >
> > Now on Windows, I expected them to work just by compiling osg with the
> OSG_GL3_AVAILABLE flag.
> > What happens instead is:
> > - if I build osg with GL core profile (no GL 1 and 2, no FFP enabled,
> ecc...) everything works
> > - if I build osg just adding the OSG_GL3_AVAILABLE flag and launch the
> application by specifying a GL 3.2 Compatibility profile, I get no errors
> but nothing shows up
> >
> > Are my expectations correct? Should I check some more compilation /
> runtime settings to have it working?
> >
> > My setup is:
> > osg 3.6.2
> > win 10
> > nvidia GTX card
> >
> > Thank you,
> > Riccardo
> > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180905/ff1d270f/attachment.html>


More information about the osg-users mailing list