#15 glDrawElements memory access error

v2.0
closed-fixed
GL (74)
6
2001-08-09
2001-08-09
No

Previously working code in
OpenGLContext/scenegraph/arraygeometry.py using
glDrawElements(
objectType,
GL_UNSIGNED_INT, # this
changed with PyOpenGLSWIG 2.0, not previously needed
indices
)

modified to in response to changed API:
glDrawElements(
objectType,
len(indices),
GL_UNSIGNED_INT, # this
changed with PyOpenGLSWIG 2.0, not previously needed
indices
)

causes a memory access error, looks like it's going
beyond the end of the array.

Discussion

  • Tarn Weisner Burton

    Logged In: YES
    user_id=21784

    glDrawElements(mode, count, type, indices) takes a string
    as the indices argument. You probably want

    glDrawElementsui(mode, indices[])

     
  • Mike C. Fletcher

    Logged In: YES
    user_id=34901

    Okay, updated the arraygeometry code to reflect new calling
    method. Thanks.

     
  • Mike C. Fletcher

    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks