Storing flags passed down to buffer object.

This commit is contained in:
Marco Weber 2015-11-26 12:20:41 +00:00
parent a5485b977c
commit e31e963165

View file

@ -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);