diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-10-29 12:45:04 +0800 |
---|---|---|
committer | Chia-I Wu <olv@lunarg.com> | 2010-10-29 12:46:59 +0800 |
commit | 9de5c6a1cb1428154c371f4331b55b5161957b50 (patch) | |
tree | d4a40efee4d53646fb0350c7e4cf1472bd42a98c /src/mapi/glapi/gen/gl_procs.py | |
parent | 815faa448cccc38aebb1b60ecf0bd7e6bf8f277e (diff) | |
parent | b762db62c2972506fa78a5ed72f796113fc9b0d1 (diff) |
Merge branch 'glapi-reorg'
Conflicts:
src/mapi/glapi/glapi_sparc.S
src/mapi/glapi/glapi_x86.S
src/mapi/glapi/glapidispatch.h
src/mapi/glapi/glapioffsets.h
src/mapi/glapi/glprocs.h
Diffstat (limited to 'src/mapi/glapi/gen/gl_procs.py')
-rw-r--r-- | src/mapi/glapi/gen/gl_procs.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mapi/glapi/gen/gl_procs.py b/src/mapi/glapi/gen/gl_procs.py index 5de61fbdfe..a9ba48297a 100644 --- a/src/mapi/glapi/gen/gl_procs.py +++ b/src/mapi/glapi/gen/gl_procs.py @@ -96,7 +96,7 @@ typedef struct { for func in api.functionIterateByOffset(): name = func.dispatch_name() self.printFunctionString(func.name) - table.append((base_offset, "gl" + name, "gl" + name, "NULL", func.name)) + table.append((base_offset, "gl" + name, "gl" + name, "NULL", func.offset)) # The length of the function's name, plus 2 for "gl", # plus 1 for the NUL. @@ -112,9 +112,9 @@ typedef struct { if func.has_different_protocol(n): alt_name = "gl" + func.static_glx_name(n) - table.append((base_offset, "gl" + name, alt_name, alt_name, func.name)) + table.append((base_offset, "gl" + name, alt_name, alt_name, func.offset)) else: - table.append((base_offset, "gl" + name, "gl" + name, "NULL", func.name)) + table.append((base_offset, "gl" + name, "gl" + name, "NULL", func.offset)) base_offset += len(n) + 3 @@ -170,7 +170,7 @@ typedef struct { print 'static const glprocs_table_t static_functions[] = {' for info in table: - print ' NAME_FUNC_OFFSET(%5u, %s, %s, %s, _gloffset_%s),' % info + print ' NAME_FUNC_OFFSET(%5u, %s, %s, %s, %d),' % info print ' NAME_FUNC_OFFSET(-1, NULL, NULL, NULL, 0)' print '};' |