Fix leak caused by wrong ownership flag

This commit is contained in:
Campbell Barton 2017-09-08 04:22:19 +10:00
parent a2989b89c3
commit 5b026486e4
Notes: blender-bot 2023-02-14 06:38:12 +01:00
Referenced by issue #52593, Eevee: viewport issues before toggling AO support
1 changed files with 1 additions and 1 deletions

View File

@ -165,6 +165,6 @@ Gwn_Batch *BLI_displist_batch_calc_surface(ListBase *lb)
return GWN_batch_create_ex(
GWN_PRIM_TRIS, vbo, GWN_indexbuf_build(&elb),
GWN_BATCH_OWNS_VBO | GWN_BATCH_OWNS_VBO);
GWN_BATCH_OWNS_VBO | GWN_BATCH_OWNS_INDEX);
}
}