Hi Ulrich,

Patch for this error was already submit by Jordi Torres in

"Uniform update to OpenGL 420 and Atomic Counter Buffer/Uniform" thread

Can you confirm it work for you ?

Thanks
David Callu


2012/4/5 Ulrich Hertlein <[email protected]>

> Hi guys,
>
> seems like the MatrixTemplate changes in src/osg/Uniform.cpp broke the
> compile on OS X
> with the clang++ compiler:
>
> [  0%] Built target OpenThreads
> [  0%] Building CXX object src/osg/CMakeFiles/osg.dir/Uniform.cpp.o
> /Users/uli/Projects/osg/OpenSceneGraph/src/osg/Uniform.cpp: In member
> function 'bool
> osg::Uniform::getElement(unsigned int, osg::Matrix2&) const':
> /Users/uli/Projects/osg/OpenSceneGraph/src/osg/Uniform.cpp:2149: error:
> 'template<class T,
> unsigned int ColN, unsigned int RowN> class osg::MatrixTemplate' used
> without template
> parameters
> /Users/uli/Projects/osg/OpenSceneGraph/src/osg/Uniform.cpp: In member
> function 'bool
> osg::Uniform::getElement(unsigned int, osg::Matrix3&) const':
> /Users/uli/Projects/osg/OpenSceneGraph/src/osg/Uniform.cpp:2157: error:
> 'template<class T,
> unsigned int ColN, unsigned int RowN> class osg::MatrixTemplate' used
> without template
> parameters
> /Users/uli/Projects/osg/OpenSceneGraph/src/osg/Uniform.cpp: In member
> function 'bool
> osg::Uniform::getElement(unsigned int, osg::Matrix2x3&) const':
> ...
> and so on.
>
> The attached patch changes this:
>
> bool Uniform::getElement( unsigned int index, osg::Matrix2& m2 ) const
> {
> ...
>    m2.MatrixTemplate::set( &((*_floatArray)[j]) );
> ...
> }
>
> to that:
>
> bool Uniform::getElement( unsigned int index, osg::Matrix2& m2 ) const
> {
> ...
>    m2.base_class::set( &((*_floatArray)[j]) );
> ...
> }
>
> Could somebody please verify that this works on other compilers as well?
>
> Cheers,
> /ulrich
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to