Closed danaugrs closed 5 years ago
Hi, I missed this one, thanks !
I'm looking for a simple solution, I'll keep you updated.
I set the Attrib to int32 for all targets assuming no buffer overflow on the MAX value of int32 (which I think should never happen). All APIs have been adapted in tge-gl and tge-g3n according to it.
Looks good!
Hey! I started working on targeting WebGL with WASM for G3N and been looking through your awesome code.
I noticed that here the result of
getAttribLocation
is being cast touint
. However, according to the docs the result could be-1
, which, when cast touint
, would cause an overflow error.PS: Thanks for making this and letting us know! It really motivated me to work on G3N further 😄