Hi all, I've rebuilt osg as suggested by Robert and still getting no GL errors but nothing shows up. To sum it up, running a test app which only uses libA (which addresses only GL3 functions and shaders version 150) under windows: - if I link my code to OSG built with GLCORE profile everything works - if I link the same code to OSG build with defaults, nothing shows up
As further check, I tried the same with osgsimplegl3 example which works in both OSG builds. Any idea on what could be the culprit of my code not working in the same way? @Werner you're correct, I'd like to use both libs in the same app on Windows, I think this should be possible with Compatibility profile. Thank you On Wed, Sep 5, 2018 at 12:17 PM Werner Modenbach <werner.modenb...@texion.eu> wrote: > Hi Robert, > > I thin k Riccardo wants to use both libs (libA glcore, linB non glcore) > in the same app on Windows. > In my understanding this is not possible at all. > > - Werner - > > Am 05.09.2018 um 11:36 schrieb Robert Osfield: > > Hi Riccardo, > > > > On Wed, 5 Sep 2018 at 10:23, Riccardo Corsi <riccardo.co...@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. > > _______________________________________________ > > osg-users mailing list > > osg-users@lists.openscenegraph.org > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org