From e31e9631655547944bc957d82286cc06d21401cb Mon Sep 17 00:00:00 2001 From: Marco Weber Date: Thu, 26 Nov 2015 12:20:41 +0000 Subject: [PATCH] Storing flags passed down to buffer object. --- src/renderer_mtl.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderer_mtl.mm b/src/renderer_mtl.mm index 5e2b508c..5627c8aa 100644 --- a/src/renderer_mtl.mm +++ b/src/renderer_mtl.mm @@ -1784,9 +1784,11 @@ namespace bgfx { namespace mtl void BufferMtl::create(uint32_t _size, void* _data, uint16_t _flags, uint16_t _stride, bool _vertex) { - BX_UNUSED(_flags, _stride, _vertex); + BX_UNUSED(_stride, _vertex); m_size = _size; + m_flags = _flags; + if (NULL == _data) { m_buffer = s_renderMtl->m_device.newBufferWithLength(_size, 0);