<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi Robert,</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">thanks for your reply but I probably didn't explain clearly my issue.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Say I have:</div><div class="gmail_default" style="font-family:tahoma,sans-serif">- libA (using only GL Core features, because I want to use this lib also on Mac)</div><div class="gmail_default" style="font-family:tahoma,sans-serif">- libB (using also GL 2.x features, target Win only)</div><div><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">If I compile and use only libA against osg built with GLCORE profile, everything works both on Win and Mac.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Now what I'd like to do (on Win only) is to use libA and libB together.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">To do so I expected it was enough to add the OSG_<span style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif">GL3_AVAILABLE flag to build OSG and to request a Compatibility GL context. </span></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif">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.</span></div><div class="gmail_default" style="font-family:tahoma,sans-serif"></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Riccardo</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 5, 2018 at 9:27 AM Robert Osfield <<a href="mailto:robert.osfield@gmail.com">robert.osfield@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Riccardo,<br>
<br>
The OSG_GL*_AVAILABLE flags are the lower level switches, if you want<br>
a core profile with none of the fixed funcion pipeline then the<br>
OSG_GL1 + GL2_AVAILABLE will need to be OFF. There are other controls<br>
as well.<br>
<br>
The best way to get everything set correct is to run CMake with<br>
OSG_GL_PROFILE set to GLCORE, this high level mechanisn will set all<br>
the low level stuff you need.<br>
<br>
Cheers,<br>
Robert.<br>
On Tue, 4 Sep 2018 at 21:44, Riccardo Corsi <<a href="mailto:riccardo.corsi@kairos3d.it" target="_blank">riccardo.corsi@kairos3d.it</a>> wrote:<br>
><br>
> Hi all,<br>
><br>
> I have some osg-based libraries that are addressing only GL3+ Core profile functionalities, as I need them to work on Mac.<br>
><br>
> Now on Windows, I expected them to work just by compiling osg with the OSG_GL3_AVAILABLE flag.<br>
> What happens instead is:<br>
> - if I build osg with GL core profile (no GL 1 and 2, no FFP enabled, ecc...) everything works<br>
> - 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<br>
><br>
> Are my expectations correct? Should I check some more compilation / runtime settings to have it working?<br>
><br>
> My setup is:<br>
> osg 3.6.2<br>
> win 10<br>
> nvidia GTX card<br>
><br>
> Thank you,<br>
> Riccardo<br>
> _______________________________________________<br>
> osg-users mailing list<br>
> <a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
> <a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div>