Cleanup.
This commit is contained in:
parent
23c611929a
commit
be8b8381cc
@ -1873,13 +1873,19 @@ struct DebugDrawEncoderImpl
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
float mtx[16];
|
float mtx[16];
|
||||||
bx::mtxFromNormal(mtx, _normal, _size*0.5f, _center);
|
bx::mtxFromNormal(mtx, _normal, _size*0.5f, _center, attrib.m_spin);
|
||||||
draw(Mesh::Quad, mtx, 1, false);
|
draw(Mesh::Quad, mtx, 1, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void drawQuad(SpriteHandle _handle, const float* _normal, const float* _center, float _size)
|
void drawQuad(SpriteHandle _handle, const float* _normal, const float* _center, float _size)
|
||||||
{
|
{
|
||||||
|
if (!isValid(_handle) )
|
||||||
|
{
|
||||||
|
drawQuad(_normal, _center, _size);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (m_posQuad == BX_COUNTOF(m_cacheQuad) )
|
if (m_posQuad == BX_COUNTOF(m_cacheQuad) )
|
||||||
{
|
{
|
||||||
flushQuad();
|
flushQuad();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user