Added debug check for arguments.

This commit is contained in:
Branimir Karadžić 2015-10-13 18:28:22 -07:00
parent b167c5e680
commit 1dfd3fd9d9

View file

@ -3385,6 +3385,7 @@ namespace bgfx
BGFX_API_FUNC(void setIndexBuffer(const TransientIndexBuffer* _tib, uint32_t _firstIndex, uint32_t _numIndices) ) BGFX_API_FUNC(void setIndexBuffer(const TransientIndexBuffer* _tib, uint32_t _firstIndex, uint32_t _numIndices) )
{ {
BGFX_CHECK_HANDLE("setIndexBuffer", m_indexBufferHandle, _tib->handle);
m_submit->setIndexBuffer(_tib, _firstIndex, _numIndices); m_submit->setIndexBuffer(_tib, _firstIndex, _numIndices);
} }
@ -3402,6 +3403,7 @@ namespace bgfx
BGFX_API_FUNC(void setVertexBuffer(const TransientVertexBuffer* _tvb, uint32_t _startVertex, uint32_t _numVertices) ) BGFX_API_FUNC(void setVertexBuffer(const TransientVertexBuffer* _tvb, uint32_t _startVertex, uint32_t _numVertices) )
{ {
BGFX_CHECK_HANDLE("setVertexBuffer", m_vertexBufferHandle, _tvb->handle);
m_submit->setVertexBuffer(_tvb, _startVertex, _numVertices); m_submit->setVertexBuffer(_tvb, _startVertex, _numVertices);
} }