evanw / lightgl.js

A lightweight WebGL library
MIT License
1.52k stars 146 forks source link

Indices using a Int16Array instead of Uint16Array #2

Closed jagenjo closed 12 years ago

jagenjo commented 12 years ago

I was having problems when parsing huge meshes and discovered that the Indices are stored in a Int16Array instead of a Uint16Array. I can't understand why, AFAIK using Uint16Array we can store up to 65000 vertices, but with int16 only half of that.

Am I missing something here?

evanw commented 12 years ago

Yup, that was dumb. Fixed in 4fa7d06233438038f85f3722951fe26b8caaadbc.