I'm surprised it works on either card since location 0 is usually reserved for the gl_Vertex.
Try another location; 6 and 7 are generally safe. See osg::Drawable::AttributeTypes. Also read this, under "Custom Vertex Attributes": http://goo.gl/Beaql Glenn Waldron / @glennwaldron On Mon, Sep 3, 2012 at 1:20 PM, Peterakos <hay...@gmail.com> wrote: > Hello. > > In my application i use the following code: > > geom->setVertexAttribArray(0, data_array); > geom->setVertexAttribBinding(0, osg::Geometry::BIND_PER_VERTEX ); > program->addBindAttribLocation("position_attr", 0); > > I run this application in 2 different graphics cards: > 1) NVidia 7900 GS > 2) ATI 5570 > > Both cards support opengl 2.1. > The problem is that the previous code doesnt work in the second card > (which is newer). > > Why is this happening? > > Thank you for your time. > > _______________________________________________ > 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