GRIM: Allocate correct size buffer [TinyGL]
TODO: non-obvious changes