mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Merge pull request #583 from marco-we/fix-metal-32bit-indices
Fix 32bit indices for Metal
This commit is contained in:
commit
e5b9a6a6b5
1 changed files with 3 additions and 1 deletions
|
@ -1784,9 +1784,11 @@ namespace bgfx { namespace mtl
|
||||||
|
|
||||||
void BufferMtl::create(uint32_t _size, void* _data, uint16_t _flags, uint16_t _stride, bool _vertex)
|
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_size = _size;
|
||||||
|
m_flags = _flags;
|
||||||
|
|
||||||
if (NULL == _data)
|
if (NULL == _data)
|
||||||
{
|
{
|
||||||
m_buffer = s_renderMtl->m_device.newBufferWithLength(_size, 0);
|
m_buffer = s_renderMtl->m_device.newBufferWithLength(_size, 0);
|
||||||
|
|
Loading…
Reference in a new issue