mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-08-23 03:28:21 +00:00
Grow per-frame storage on-demand instead statically allocating for the maximum. (#3900)
This commit is contained in:
committed by
GitHub
parent
a772859619
commit
35a98dd645
@@ -1132,9 +1132,9 @@ struct DebugDrawEncoderImpl
|
||||
|
||||
bgfx::Transform transform;
|
||||
stack.mtx = m_encoder->allocTransform(&transform, _num);
|
||||
stack.num = _num;
|
||||
stack.num = transform.num;
|
||||
stack.data = transform.data;
|
||||
bx::memCopy(transform.data, _mtx, _num*64);
|
||||
bx::memCopy(transform.data, _mtx, transform.num*64);
|
||||
}
|
||||
|
||||
void setTranslate(float _x, float _y, float _z)
|
||||
|
||||
Reference in New Issue
Block a user