diff options
author | Ian Romanick <[email protected]> | 2006-08-26 21:26:55 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2006-08-26 21:26:55 +0000 |
commit | 7e9737b3704b92865242d7564825cdc57db5c4c9 (patch) | |
tree | dc263730d8d7ac5d0e0c21177a7ad52ff3100fcc /src/mesa/glapi/gl_XML.py | |
parent | 092d14be92259d4210e3a2b5d4b5e18886bb4d4a (diff) |
Explicitly store the names for each function that should have a static
entry point generated. This allows us to do things like generate a
static entry point for glPointParameterfvARB but not for
glPointParameterfvSGIS.
Diffstat (limited to 'src/mesa/glapi/gl_XML.py')
-rw-r--r-- | src/mesa/glapi/gl_XML.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/glapi/gl_XML.py b/src/mesa/glapi/gl_XML.py index eef29072572..868a7cd1bda 100644 --- a/src/mesa/glapi/gl_XML.py +++ b/src/mesa/glapi/gl_XML.py @@ -614,6 +614,8 @@ class gl_function( gl_item ): self.assign_offset = 0 + self.static_entry_points = [] + # Track the parameter string (for the function prototype) # for each entry-point. This is done because some functions # change their prototype slightly when promoted from extension @@ -634,7 +636,8 @@ class gl_function( gl_item ): name = element.nsProp( "name", None ) alias = element.nsProp( "alias", None ) - self.static_dispatch = is_attr_true(element, "static_dispatch") + if is_attr_true(element, "static_dispatch"): + self.static_entry_points.append(name) self.entry_points.append( name ) if alias: @@ -731,6 +734,9 @@ class gl_function( gl_item ): return create_parameter_string( self.parameters, 1 ) + def is_static_entry_point(self, name): + return name in self.static_entry_points + class gl_item_factory: """Factory to create objects derived from gl_item.""" |