0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

libobs/graphics: Avoid darray recycle

Reset size instead of capacity.
This commit is contained in:
jpark37 2021-08-11 21:24:29 -07:00 committed by Jim
parent 7217671eb0
commit e6ab8106aa

View File

@ -129,7 +129,7 @@ void gs_technique_end(gs_technique_t *tech)
for (i = 0; i < effect->params.num; i++) { for (i = 0; i < effect->params.num; i++) {
struct gs_effect_param *param = params + i; struct gs_effect_param *param = params + i;
da_free(param->cur_val); da_resize(param->cur_val, 0);
param->changed = false; param->changed = false;
if (param->next_sampler) if (param->next_sampler)
param->next_sampler = NULL; param->next_sampler = NULL;