Skip to content

Commit

Permalink
SDL: Flush commands and stall on DestroyDevice
Browse files Browse the repository at this point in the history
  • Loading branch information
thatcosmonaut committed Oct 1, 2024
1 parent 6f9d24d commit 35ff41f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/FNA3D_Driver_SDL.c
Original file line number Diff line number Diff line change
Expand Up @@ -3912,8 +3912,7 @@ static void SDLGPU_DestroyDevice(FNA3D_Device *device)
SDLGPU_Renderer *renderer = (SDLGPU_Renderer*) device->driverData;
int32_t i, j;

SDL_SubmitGPUCommandBuffer(renderer->renderCommandBuffer);
SDL_SubmitGPUCommandBuffer(renderer->uploadCommandBuffer);
SDLGPU_INTERNAL_FlushCommandsAndStall(renderer);

if (renderer->textureDownloadBuffer != NULL)
{
Expand Down

0 comments on commit 35ff41f

Please sign in to comment.