glapi: _glapi_create_table_from_handle: Set missing pointers to NoOp rather than...
authorJeremy Huddleston <jeremyhu@apple.com>
Tue, 14 Jun 2011 19:34:49 +0000 (12:34 -0700)
committerJeremy Huddleston <jeremyhu@apple.com>
Wed, 15 Jun 2011 01:22:01 +0000 (18:22 -0700)
commit1e16c34c5c86690b26739fbad82617768b1bd837
tree7c9b5fc9d95f0d07ad2a74a1347deee13b33defd
parent3751aa4592fb9e97823876ae1b434bf573d4639b
glapi: _glapi_create_table_from_handle: Set missing pointers to NoOp rather than NULL

This change to _glapi_create_table_from_handle causes it to fill the dispatch
table with NoOps for unimplemented functionality.  This matches what is done
in indirect_init.c and also allows us to enable logging (when built with
-DDEBUG and the MESA_DEBUG or LIBGL_DEBUG environment variables are set) to
catch cases where clients are trying to use these unimplemented extentions.

Additionally, this fixes some gcc -pedantic warnings.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
src/mapi/glapi/gen/gl_gentable.py
src/mapi/glapi/glapi_gentable.c