diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2009-10-20 14:32:39 +0800 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-11-05 20:04:10 -0700 |
commit | 6418f836d470b41c2a5dbfad52b797db1ec3871b (patch) | |
tree | 2165d6a4ad629a5a604c79d856639796c685381d /src/mesa/glapi/gl_table.py | |
parent | 8d2edbf1395ca1e2d23b3bd2ba2c5d54f21d377b (diff) |
glapi: Add is_abi() to test if a function is in the ABI.
The test is done by checking if the offset is manually assigned. The
generated headers are unchanged.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Diffstat (limited to 'src/mesa/glapi/gl_table.py')
-rw-r--r-- | src/mesa/glapi/gl_table.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mesa/glapi/gl_table.py b/src/mesa/glapi/gl_table.py index 0e05b3431a..698795fb0a 100644 --- a/src/mesa/glapi/gl_table.py +++ b/src/mesa/glapi/gl_table.py @@ -113,14 +113,11 @@ class PrintRemapTable(gl_XML.gl_print_base): print ' } while(0)' print '' - abi = [ "1.0", "1.1", "1.2", "GL_ARB_multitexture" ] - functions = [] abi_functions = [] count = 0 for f in api.functionIterateByOffset(): - [category, num] = api.get_category_for_name( f.name ) - if category not in abi: + if not f.is_abi(): functions.append( [f, count] ) count += 1 else: |