Hi Ravi, Could you post the whole modified file to osg-submissions, I'll review this and get it merged.
Robert. On 6 November 2015 at 02:05, Ravi Mathur <ravid...@utexas.edu> wrote: > Hi all, > > The osgviewerCocoa example gives the following error during build: > > > Code: > > ViewerCocoa.mm:176:9: error: > cast from pointer to smaller type 'NSOpenGLPixelFormatAttribute' > (aka 'unsigned int') loses information > (NSOpenGLPixelFormatAttribute)nil > ^~~~~~~~~~~~~~~~~~~~~~ > > > > > This occurs on the OpenSceneGraph-3.4 branch of the Git repo, using OSX > 10.10.5 with the latest Command Line Tools (clang 7.0.0). > > According to Apple's NSOpenGLPixelFormat reference (can't post url since > this is my first post), the last element of the > NSOpenGLPixelFormatAttribute array should be 0 (zero), not > (NSOpenGLPixelFormatAttribute)nil . The new clang is strict about this, so > throws an error. > > Thanks! > Ravi > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=65557#65557 > > > > > > _______________________________________________ > 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