From 6418f836d470b41c2a5dbfad52b797db1ec3871b Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 20 Oct 2009 14:32:39 +0800 Subject: 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 --- src/mesa/glapi/gl_offsets.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/mesa/glapi/gl_offsets.py') diff --git a/src/mesa/glapi/gl_offsets.py b/src/mesa/glapi/gl_offsets.py index ca6c90ffd8..b8b509d09f 100644 --- a/src/mesa/glapi/gl_offsets.py +++ b/src/mesa/glapi/gl_offsets.py @@ -41,8 +41,6 @@ class PrintGlOffsets(gl_XML.gl_print_base): return def printBody(self, api): - abi = [ "1.0", "1.1", "1.2", "GL_ARB_multitexture" ] - print '/* this file should not be included directly in mesa */' print '' @@ -50,8 +48,7 @@ class PrintGlOffsets(gl_XML.gl_print_base): 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: -- cgit v1.2.3