mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Added debug check for arguments.
This commit is contained in:
parent
b167c5e680
commit
1dfd3fd9d9
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue