Mesa (master): glapi: _glapi_create_table_from_handle: Set missing pointers to NoOp rather than NULL

Jeremy Huddleston jeremyhu at kemper.freedesktop.org
Wed Jun 15 01:22:39 UTC 2011


Module: Mesa
Branch: master
Commit: 1e16c34c5c86690b26739fbad82617768b1bd837
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e16c34c5c86690b26739fbad82617768b1bd837

Author: Jeremy Huddleston <jeremyhu at apple.com>
Date:   Tue Jun 14 12:34:49 2011 -0700

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 at apple.com>

---

 src/mapi/glapi/gen/gl_gentable.py |   44 +-
 src/mapi/glapi/glapi_gentable.c   | 5208 +++++++++++++++++++------------------
 2 files changed, 2666 insertions(+), 2586 deletions(-)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=1e16c34c5c86690b26739fbad82617768b1bd837



More information about the mesa-commit mailing list