Skip to content

Commit

Permalink
Uncomment command buffer cancellation code
Browse files Browse the repository at this point in the history
  • Loading branch information
kg authored Jan 1, 2025
1 parent cc443d6 commit b858264
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/FNA3D_Driver_SDL.c
Original file line number Diff line number Diff line change
Expand Up @@ -4084,10 +4084,8 @@ static void SDLGPU_DestroyDevice(FNA3D_Device *device)

SDLGPU_INTERNAL_FlushCommands(renderer);
// avoid command buffer leaks by explicitly canceling newly-acquired command buffers
/*
SDL_CancelGPUCommandBuffer(renderer->uploadCommandBuffer);
SDL_CancelGPUCommandBuffer(renderer->renderCommandBuffer);
*/
SDL_WaitForGPUIdle(renderer->device);

SDL_UnlockMutex(renderer->copyPassMutex);
Expand Down

0 comments on commit b858264

Please sign in to comment.