mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-22 07:01:30 +00:00
[idd] transport: add frame sink boundary
This commit is contained in:
@@ -39,11 +39,11 @@ void CFrameBufferPool::Reset()
|
||||
CFrameBufferResource * CFrameBufferPool::Get(
|
||||
const PreparedFrameBuffer& buffer, size_t minSize)
|
||||
{
|
||||
if (buffer.frameIndex > ARRAYSIZE(m_buffers) - 1)
|
||||
if (buffer.resourceSlot > ARRAYSIZE(m_buffers) - 1)
|
||||
return nullptr;
|
||||
|
||||
CFrameBufferResource * fbr = &m_buffers[buffer.frameIndex];
|
||||
if (!fbr->Init(m_dx12, buffer.frameIndex, buffer.mem,
|
||||
CFrameBufferResource * fbr = &m_buffers[buffer.resourceSlot];
|
||||
if (!fbr->Init(m_dx12, buffer.token, buffer.mem,
|
||||
buffer.heapOffset, minSize, m_transport->GetMaxFrameSize()))
|
||||
return nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user