Fix sculpt error freeing NULL vertex buffer

Relates to T53806 which needs further investigation
This commit is contained in:
Campbell Barton 2018-01-19 19:35:27 +11:00
parent 5477452194
commit 9cac97fb3c
1 changed files with 1 additions and 1 deletions

View File

@ -1936,7 +1936,7 @@ void GPU_pbvh_buffers_free(GPU_PBVH_Buffers *buffers)
GWN_INDEXBUF_DISCARD_SAFE(buffers->index_buf);
}
GWN_INDEXBUF_DISCARD_SAFE(buffers->index_buf_fast);
GWN_vertbuf_discard(buffers->vert_buf);
GWN_VERTBUF_DISCARD_SAFE(buffers->vert_buf);
#ifdef USE_BASE_ELEM
if (buffers->baseelemarray)