diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-05-18 00:47:41 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-05-19 00:01:07 +0300 |
commit | c34e3f0f1925aa3a90f5d2a157ae42310d1f7e84 (patch) | |
tree | 5bfbf6c80a4fdfdc7486a0db0f021514cf1bb7ba /source/blender/draw/intern/draw_manager_data.c | |
parent | 28316e08105965399ff1ad0ed770c064dcc2d6bd (diff) |
DRW: Fix DRW_shgroup_buffer_texture naming
We do not need `_ex` suffix.
Diffstat (limited to 'source/blender/draw/intern/draw_manager_data.c')
-rw-r--r-- | source/blender/draw/intern/draw_manager_data.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/draw/intern/draw_manager_data.c b/source/blender/draw/intern/draw_manager_data.c index 19c22f17b32..9b70904a8fb 100644 --- a/source/blender/draw/intern/draw_manager_data.c +++ b/source/blender/draw/intern/draw_manager_data.c @@ -547,9 +547,9 @@ void DRW_shgroup_vertex_buffer_ref_ex(DRWShadingGroup *shgroup, shgroup, location, DRW_UNIFORM_VERTEX_BUFFER_AS_STORAGE_REF, vertex_buffer, 0, 0, 1); } -void DRW_shgroup_buffer_texture_ex(DRWShadingGroup *shgroup, - const char *name, - GPUVertBuf *vertex_buffer) +void DRW_shgroup_buffer_texture(DRWShadingGroup *shgroup, + const char *name, + GPUVertBuf *vertex_buffer) { int location = GPU_shader_get_ssbo(shgroup->shader, name); if (location == -1) { @@ -559,9 +559,9 @@ void DRW_shgroup_buffer_texture_ex(DRWShadingGroup *shgroup, shgroup, location, DRW_UNIFORM_VERTEX_BUFFER_AS_TEXTURE, vertex_buffer, 0, 0, 1); } -void DRW_shgroup_buffer_texture_ref_ex(DRWShadingGroup *shgroup, - const char *name, - GPUVertBuf **vertex_buffer) +void DRW_shgroup_buffer_texture_ref(DRWShadingGroup *shgroup, + const char *name, + GPUVertBuf **vertex_buffer) { int location = GPU_shader_get_ssbo(shgroup->shader, name); if (location == -1) { @@ -647,7 +647,7 @@ static void drw_call_obinfos_init(DRWObjectInfos *ob_infos, Object *ob) drw_call_calc_orco(ob, ob_infos->orcotexfac); /* Random float value. */ uint random = (DST.dupli_source) ? - DST.dupli_source->random_id : + DST.dupli_source->random_id : /* TODO(fclem): this is rather costly to do at runtime. Maybe we can * put it in ob->runtime and make depsgraph ensure it is up to date. */ BLI_hash_int_2d(BLI_hash_string(ob->id.name + 2), 0); |