Removed vertex stream assert. Issue #917.
This commit is contained in:
parent
1857969046
commit
9181888783
@ -1570,7 +1570,7 @@ namespace bgfx
|
|||||||
void setVertexBuffer(uint8_t _stream, VertexBufferHandle _handle, uint32_t _startVertex, uint32_t _numVertices)
|
void setVertexBuffer(uint8_t _stream, VertexBufferHandle _handle, uint32_t _startVertex, uint32_t _numVertices)
|
||||||
{
|
{
|
||||||
const uint8_t bit = 1<<_stream;
|
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;
|
m_draw.m_streamMask |= bit;
|
||||||
|
|
||||||
Stream& stream = m_draw.m_stream[_stream];
|
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)
|
void setVertexBuffer(uint8_t _stream, const DynamicVertexBuffer& _dvb, uint32_t _startVertex, uint32_t _numVertices)
|
||||||
{
|
{
|
||||||
const uint8_t bit = 1<<_stream;
|
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;
|
m_draw.m_streamMask |= bit;
|
||||||
|
|
||||||
Stream& stream = m_draw.m_stream[_stream];
|
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)
|
void setVertexBuffer(uint8_t _stream, const TransientVertexBuffer* _tvb, uint32_t _startVertex, uint32_t _numVertices)
|
||||||
{
|
{
|
||||||
const uint8_t bit = 1<<_stream;
|
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;
|
m_draw.m_streamMask |= bit;
|
||||||
|
|
||||||
Stream& stream = m_draw.m_stream[_stream];
|
Stream& stream = m_draw.m_stream[_stream];
|
||||||
|
Loading…
Reference in New Issue
Block a user