From e6f7cbaff088597431cf149af29dc2bbf0de6ef4 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Tue, 2 May 2017 16:42:55 -0700 Subject: layers: hold UO dispatch tables by value in layer_data Trims out some allocations; fixes leak of dispatch tables --- scripts/unique_objects_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/unique_objects_generator.py b/scripts/unique_objects_generator.py index a08276fa..d53c3bc4 100644 --- a/scripts/unique_objects_generator.py +++ b/scripts/unique_objects_generator.py @@ -904,7 +904,7 @@ class UniqueObjectsOutputGenerator(OutputGenerator): else: paramstext = paramstext.replace(param.name, '(%s %s)local_%s' % ('const', param.type, param.name)) # Use correct dispatch table - API = cmdinfo.elem.attrib.get('name').replace('vk','dev_data->dispatch_table->',1) + API = cmdinfo.elem.attrib.get('name').replace('vk','dev_data->dispatch_table.',1) # Put all this together for the final down-chain call self.appendSection('command', ' ' + assignresult + API + '(' + paramstext + ');') # And add the post-API-call codegen -- cgit v1.2.3