diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-05-30 13:19:20 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-05-30 13:25:20 +0300 |
commit | 48ceeead107e84631d89ea68efb7c04a61e3c19a (patch) | |
tree | abefea9f9860a211b12dbec0292b305e7a38c879 /source/blender/draw/intern/draw_instance_data.h | |
parent | 10c0bba28e0ddc65594bacf6baba8371abb33dbe (diff) |
DRW: Instance Data: Replace with static allocation that can be referenced.
This mean you can store data used for drawing inside the object engine
data.
Also fixes T55243 Crash in ASAN debug builds due to use-after-free memory in draw code - instances issue?
Diffstat (limited to 'source/blender/draw/intern/draw_instance_data.h')
-rw-r--r-- | source/blender/draw/intern/draw_instance_data.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_instance_data.h b/source/blender/draw/intern/draw_instance_data.h index bc3c0c2e04c..86c4429a091 100644 --- a/source/blender/draw/intern/draw_instance_data.h +++ b/source/blender/draw/intern/draw_instance_data.h @@ -39,9 +39,8 @@ typedef struct DRWInstanceDataList DRWInstanceDataList; struct DRWShadingGroup; void *DRW_instance_data_next(DRWInstanceData *idata); -void *DRW_instance_data_get(DRWInstanceData *idata); DRWInstanceData *DRW_instance_data_request( - DRWInstanceDataList *idatalist, uint attrib_size, uint instance_group); + DRWInstanceDataList *idatalist, uint attrib_size); void DRW_batching_buffer_request( DRWInstanceDataList *idatalist, Gwn_VertFormat *format, Gwn_PrimType type, struct DRWShadingGroup *shgroup, |