Explorar el Código

libobs/graphics: Avoid darray recycle

Reset size instead of capacity.
jpark37 hace 4 años
padre
commit
e6ab8106aa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      libobs/graphics/effect.c

+ 1 - 1
libobs/graphics/effect.c

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