glapi: Correct size of allocated _glapi_table struct
authorJonas Maebe <jonas.maebe@elis.ugent.be>
Mon, 23 Apr 2012 03:39:32 +0000 (20:39 -0700)
committerJeremy Huddleston <jeremyhu@apple.com>
Mon, 23 Apr 2012 03:39:32 +0000 (20:39 -0700)
commit8d09f4d0cc8d2ac5398c8b26638d5659429a4280
tree16fc44ec346951876e0503e62591c95c3b10fd5f
parente6aad9ba04fb914a2484241f74ed0557fd1d59da
glapi: Correct size of allocated _glapi_table struct

The __glapi_gentable_set_remaining_noop() routine treats the _glapi_struct
as an array of _glapi_get_dispatch_table_size() pointers, so we have to
allocate _glapi_get_dispatch_table_size()*sizeof(void*) bytes rather
than sizeof(struct _glapi_struct) bytes.

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
src/mapi/glapi/glapi_gentable.c