diff options
| author | Chris Forbes <chrisforbes@google.com> | 2017-05-02 16:42:55 -0700 |
|---|---|---|
| committer | Chris Forbes <chrisf@ijw.co.nz> | 2017-05-03 11:38:06 -0700 |
| commit | e6f7cbaff088597431cf149af29dc2bbf0de6ef4 (patch) | |
| tree | 97c484162957facf3f8e4bb1a94d04669b52fd2c /scripts | |
| parent | 04c739104d66020cebaf981a9bfa5d8ce622df45 (diff) | |
| download | usermoji-e6f7cbaff088597431cf149af29dc2bbf0de6ef4.tar.xz | |
layers: hold UO dispatch tables by value in layer_data
Trims out some allocations; fixes leak of dispatch tables
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/unique_objects_generator.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
