瀏覽代碼

added another spot-check to verify dispatch table correctness

tags/mesa_4_1
Brian Paul 23 年之前
父節點
當前提交
91d6f12b4a
共有 1 個檔案被更改,包括 9 行新增1 行删除
  1. 9
    1
      src/mesa/glapi/glapi.c

+ 9
- 1
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
}

Loading…
取消
儲存