mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-06-08 11:23:52 +00:00
Fixed UniformCacheFrame::Resize (#3496)
This commit is contained in:
@@ -2263,7 +2263,7 @@ namespace bgfx
|
||||
|
||||
if (newKeysCapacity != m_keysCapacity)
|
||||
{
|
||||
bx::realloc(g_allocator, m_keys, newKeysCapacity*sizeof(uint64_t) );
|
||||
m_keys = (UniformCacheKey::KeyT*)bx::realloc(g_allocator, m_keys, newKeysCapacity * sizeof(uint64_t));
|
||||
m_keysCapacity = newKeysCapacity;
|
||||
}
|
||||
}
|
||||
@@ -2273,7 +2273,7 @@ namespace bgfx
|
||||
|
||||
if (newDataCapacity != m_dataCapacity)
|
||||
{
|
||||
bx::realloc(g_allocator, m_keys, newDataCapacity);
|
||||
m_data = (uint8_t*)bx::realloc(g_allocator, m_data, newDataCapacity);
|
||||
m_dataCapacity = newDataCapacity;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user