I Believe your Draw Array number should be NUM_POINTS - 1 as you have defined it You providing 0-99 in you for loop but telling the array you have 0-100
Gordon Product Manager 3d __________________________________________________________ Gordon Tomlinson Email : gtomlinson @ overwatch.textron.com __________________________________________________________ ________________________________ From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Mojtaba Fathi Sent: Tuesday, May 19, 2009 3:40 PM To: osg-users@lists.openscenegraph.org Subject: [osg-users] problem with Drawable and glCallList (sample programincluded) Hi all I have a strange problem with Drawable::draw function which can't understand the reason. In order to show you the problem, I've attached a sample program which generates an Access Violation in Drawable::draw function when it calls glCallList function. Before the main function, there is the definition of NUM_POINTS as follows: #define NUM_POINTS 100 If I change this value to 10 and rerun the program, every thing seems to be fine, but with 100 I get the Access Violation error. Regards Moji the Great
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org