diff options
author | Brian Paul <[email protected]> | 2002-05-29 15:23:16 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-05-29 15:23:16 +0000 |
commit | 91d6f12b4ad4d5dde42ef0c86e4531a60f770dbd (patch) | |
tree | a7ca34bef110087aa19f3137408fb650bde91a48 /src | |
parent | 60f1a3c288dd663ff420fada558763d7524e499b (diff) |
added another spot-check to verify dispatch table correctness
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/glapi/glapi.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c index d962df37e21..d50a37bd9ff 100644 --- a/src/mesa/glapi/glapi.c +++ b/src/mesa/glapi/glapi.c @@ -1,4 +1,4 @@ -/* $Id: glapi.c,v 1.61 2002/03/07 21:50:41 brianp Exp $ */ +/* $Id: glapi.c,v 1.62 2002/05/29 15:23:16 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -854,5 +854,13 @@ _glapi_check_table(const struct _glapi_table *table) assert(secondaryColor3fOffset == offset); assert(_glapi_get_proc_address("glSecondaryColor3fEXT") == (void *) &glSecondaryColor3fEXT); } + { + GLuint pointParameterivOffset = _glapi_get_proc_offset("glPointParameterivNV"); + char *pointParameterivFunc = (char*) &table->PointParameterivNV; + GLuint offset = (pointParameterivFunc - (char *) table) / sizeof(void *); + assert(pointParameterivOffset == _gloffset_PointParameterivNV); + assert(pointParameterivOffset == offset); + assert(_glapi_get_proc_address("glPointParameterivNV") == (void *) &glPointParameterivNV); + } #endif } |