greggman / twgl.js

A Tiny WebGL helper Library
http://twgljs.org
MIT License
2.61k stars 258 forks source link

bindTransformFeedbackInfo with offset #222

Open arifr1234 opened 1 year ago

arifr1234 commented 1 year ago

https://github.com/greggman/twgl.js/blob/e685cf96ecb171839810dca5480834abe8c86919/src/programs.js#LL1149C20-L1149C20 The function bindTransformFeedbackInfo accesses the "size" of an attribute of the bufferInfo, however, "size" is an alias of "numComponents", which means that when you try to configure "size" you end up configuring "numComponents".

arifr1234 commented 1 year ago

When the function tries to access "size" it gets undefined.

greggman commented 1 year ago

doh!

what do you think I should do. I could change it to transformFeedbackSize or rangeSize

arifr1234 commented 1 year ago

So transformFeedbackSize will be an optional property of FullArraySpec?