Removed vertex stream assert. Issue #917.

This commit is contained in:
Branimir Karadžić 2016-09-15 08:33:41 -07:00
parent 1857969046
commit 9181888783

View File

@ -1570,7 +1570,7 @@ namespace bgfx
void setVertexBuffer(uint8_t _stream, VertexBufferHandle _handle, uint32_t _startVertex, uint32_t _numVertices)
{
const uint8_t bit = 1<<_stream;
BX_CHECK(0 == (m_draw.m_streamMask & bit), "Vertex stream %d is already set.", _stream);
// BX_CHECK(0 == (m_draw.m_streamMask & bit), "Vertex stream %d is already set.", _stream);
m_draw.m_streamMask |= bit;
Stream& stream = m_draw.m_stream[_stream];
@ -1583,7 +1583,7 @@ namespace bgfx
void setVertexBuffer(uint8_t _stream, const DynamicVertexBuffer& _dvb, uint32_t _startVertex, uint32_t _numVertices)
{
const uint8_t bit = 1<<_stream;
BX_CHECK(0 == (m_draw.m_streamMask & bit), "Vertex stream %d is already set.", _stream);
// BX_CHECK(0 == (m_draw.m_streamMask & bit), "Vertex stream %d is already set.", _stream);
m_draw.m_streamMask |= bit;
Stream& stream = m_draw.m_stream[_stream];
@ -1599,7 +1599,7 @@ namespace bgfx
void setVertexBuffer(uint8_t _stream, const TransientVertexBuffer* _tvb, uint32_t _startVertex, uint32_t _numVertices)
{
const uint8_t bit = 1<<_stream;
BX_CHECK(0 == (m_draw.m_streamMask & bit), "Vertex stream %d is already set.", _stream);
// BX_CHECK(0 == (m_draw.m_streamMask & bit), "Vertex stream %d is already set.", _stream);
m_draw.m_streamMask |= bit;
Stream& stream = m_draw.m_stream[_stream];