Hi Laurens,
I have just started doing a review of your viewport array submission
but have hit upon some errors that suggest that you've modified
GLExtensions but haven't included these with your submission:
[ 0%] Building CXX object src/osg/CMakeFiles/osg.dir/ViewportArray.o
/home/robert/OpenSceneGraph/src/osg/ViewportArray.cpp: In member
function ‘virtual void osg::ViewportArray::apply(osg::State&) const’:
/home/robert/OpenSceneGraph/src/osg/ViewportArray.cpp:36:22: error:
‘const class osg::GLExtensions’ has no member named
‘isViewportArraySupported’
if (!extensions->isViewportArraySupported)
^
/home/robert/OpenSceneGraph/src/osg/ViewportArray.cpp:43:25: error:
‘const class osg::GLExtensions’ has no member named
‘glViewportIndexedf’
extensions->glViewportIndexedf(index,
static_cast<GLfloat>(vp->x()), static_cast<GLfloat>(vp->y()),
static_cast<GLfloat>(vp->width()),
static_cast<GLfloat>(vp->height()));
^
/home/robert/OpenSceneGraph/src/osg/ViewportArray.cpp:31:24: warning:
unused variable ‘contextID’ [-Wunused-variable]
const unsigned int contextID = state.getContextID();
^
/home/robert/OpenSceneGraph/src/osg/ScissorArray.cpp: In member
function ‘virtual void osg::ScissorArray::apply(osg::State&) const’:
/home/robert/OpenSceneGraph/src/osg/ScissorArray.cpp:36:22: error:
‘const class osg::GLExtensions’ has no member named
‘isViewportArraySupported’
if (!extensions->isViewportArraySupported)
^
/home/robert/OpenSceneGraph/src/osg/ScissorArray.cpp:43:25: error:
‘const class osg::GLExtensions’ has no member named ‘glScissorIndexed’
extensions->glScissorIndexed(index,
static_cast<GLfloat>(vp->x()), static_cast<GLfloat>(vp->y()),
static_cast<GLfloat>(vp->width()),
static_cast<GLfloat>(vp->height()));
^
/home/robert/OpenSceneGraph/src/osg/ScissorArray.cpp:31:24: warning:
unused variable ‘contextID’ [-Wunused-variable]
const unsigned int contextID = state.getContextID();
^
/home/robert/OpenSceneGraph/src/osg/DepthArray.cpp: In member function
‘virtual void osg::DepthArray::apply(osg::State&) const’:
/home/robert/OpenSceneGraph/src/osg/DepthArray.cpp:41:22: error:
‘const class osg::GLExtensions’ has no member named
‘isViewportArraySupported’
if (!extensions->isViewportArraySupported)
^
/home/robert/OpenSceneGraph/src/osg/DepthArray.cpp:57:25: error:
‘const class osg::GLExtensions’ has no member named
‘glDepthRangeIndexed’
extensions->glDepthRangeIndexed(index,
static_cast<GLclampd>(depth->getZNear()),
static_cast<GLclampd>(depth->getZFar()));
^
/home/robert/OpenSceneGraph/src/osg/DepthArray.cpp:33:24: warning:
unused variable ‘contextID’ [-Wunused-variable]
const unsigned int contextID = state.getContextID();
^
Could you post these?
Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org