Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should not update the number of elements too #211

Open
wighawag opened this issue Oct 7, 2022 · 1 comment
Open

Should not update the number of elements too #211

wighawag opened this issue Oct 7, 2022 · 1 comment

Comments

@wighawag
Copy link

wighawag commented Oct 7, 2022

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

@greggman
Copy link
Owner

greggman commented Oct 8, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants