Cleanup: DRW: Remove DRW_pass_free

This commit is contained in:
2019-05-09 00:38:48 +02:00
parent e2d04229c3
commit 60aede44ba
4 changed files with 16 additions and 17 deletions

View File

@@ -601,13 +601,7 @@ static void gpu_viewport_storage_free(StorageList *stl, int stl_len)
static void gpu_viewport_passes_free(PassList *psl, int psl_len)
{
for (int i = 0; i < psl_len; i++) {
struct DRWPass *pass = psl->passes[i];
if (pass) {
DRW_pass_free(pass);
psl->passes[i] = NULL;
}
}
memset(psl, 0, sizeof(struct DRWPass *) * psl_len);
}
/* Must be executed inside Drawmanager Opengl Context. */