diff options
author | Germano <germano.costa@ig.com.br> | 2018-04-19 17:24:10 +0300 |
---|---|---|
committer | Germano <germano.costa@ig.com.br> | 2018-04-19 17:24:10 +0300 |
commit | ffe02e17b2fa39865ee4cfa53d4f6c06bdfe31d9 (patch) | |
tree | fa5a25673a6c8f4fe0caddb748ce839fd5d7e45c /intern/gawain | |
parent | 1266a36b877079a7fe05e5b8e0b879a88cb74c1b (diff) |
GWN Immediate: use GWN_BATCH_OWNS_VBO for created with imm immBeginBatch.
Diffstat (limited to 'intern/gawain')
-rw-r--r-- | intern/gawain/src/gwn_immediate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/gawain/src/gwn_immediate.c b/intern/gawain/src/gwn_immediate.c index 0e57aefebe2..006af0abe01 100644 --- a/intern/gawain/src/gwn_immediate.c +++ b/intern/gawain/src/gwn_immediate.c @@ -275,7 +275,7 @@ Gwn_Batch* immBeginBatch(Gwn_PrimType prim_type, unsigned vertex_ct) imm.buffer_bytes_mapped = GWN_vertbuf_size_get(verts); imm.vertex_data = verts->data; - imm.batch = GWN_batch_create(prim_type, verts, NULL); + imm.batch = GWN_batch_create_ex(prim_type, verts, NULL, GWN_BATCH_OWNS_VBO); imm.batch->phase = GWN_BATCH_BUILDING; return imm.batch; |