Skip to content

Commit b3fcc11

Browse files
committed
fix: buffer cleanup queue issue
1 parent 5feb7a1 commit b3fcc11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/pl_graphics_ext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ pl_queue_buffer_for_deletion(plDevice* ptDevice, plBufferHandle tHandle)
230230
{
231231
plFrameGarbage* ptGarbage = pl__get_frame_garbage(ptDevice);
232232
pl_sb_push(ptGarbage->sbtBuffers, tHandle);
233-
pl_sb_push(ptGarbage->sbtMemory, ptDevice->sbtBuffersCold[tHandle.uIndex].tMemoryAllocation);
234233
ptDevice->sbtBuffersCold[tHandle.uIndex].tMemoryAllocation._uFrameBoundaryValueForDeletion = pl__get_frame_resources(ptDevice)->uNextValue;
234+
pl_sb_push(ptGarbage->sbtMemory, ptDevice->sbtBuffersCold[tHandle.uIndex].tMemoryAllocation);
235235
ptDevice->sbtBuffersCold[tHandle.uIndex]._uGeneration++;
236236
ptDevice->sbtBuffersCold[tHandle.uIndex]._uFrameBoundaryValueForDeletion = pl__get_frame_resources(ptDevice)->uNextValue;
237237
// pl_log_trace_f(gptLog, uLogChannelGraphics, "Queue buffer %u for deletion frame %llu", tHandle.uIndex, gptIO->ulFrameCount);

0 commit comments

Comments
 (0)