Gawain: add ownership flag to Gwn_Batch
authorCampbell Barton <ideasman42@gmail.com>
Wed, 16 Aug 2017 07:42:05 +0000 (17:42 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 16 Aug 2017 07:42:05 +0000 (17:42 +1000)
commit4f97be617c8687ddf450d5a783d7571a69507b2e
treecb5f4b0561a230a2dd0b29894b062605c73527b3
parent1b462e5a51458e36df886838ee272b4bb18ed4da
Gawain: add ownership flag to Gwn_Batch

Flag ownership for each index array & vbo's
so we don't have to manually keep track of this and use the right free call.

Instead this can be passed on creation.

See D2676
intern/gawain/gawain/gwn_batch.h
intern/gawain/src/gwn_batch.c