Skip to content

Should not update the number of elements too #211

Open
@wighawag

Description

@wighawag

Hi,
Thanks for twgl.js nice library!

I was playing with it and realised that updating the buffer data using twgl.setAttribInfoBufferFromArray did not automatically update the numElements value

As I started with a zero element array in init, it never display anything until I updated the bufferInfo.numElements value

Is that intended ?

Is there any elegant way to update it while calling twgl.setAttribInfoBufferFromArray

For better context, see my repoduction repo with the commit fixing my issue : bug-reproduction/twgl-test@d2f4d36

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions