ref_vk: yet anothe var def

This commit is contained in:
Ivan Avdeev 2021-06-06 23:14:35 -07:00
parent ef1f88005f
commit c5bb450a5a
1 changed files with 1 additions and 2 deletions

View File

@ -71,8 +71,7 @@ uint32_t VK_RingBuffer_Alloc(vk_ring_buffer_t* buf, uint32_t size, uint32_t alig
if (size > tail) {
offset = ALIGN_UP(buf->permanent_size, align);
const uint32_t align_diff = offset - buf->permanent_size;
available -= align_diff - tail;
available -= (offset - buf->permanent_size) - tail;
}
if (available < size)