瀏覽代碼

GPU D3D12: Fix command buffer leak

cosmonaut 2 年之前
父節點
當前提交
906044569d
共有 1 個文件被更改,包括 1 次插入 和 0 次删除
  1. 1 0
      src/gpu/d3d12/SDL_gpu_d3d12.c

+ 1 - 0
src/gpu/d3d12/SDL_gpu_d3d12.c

@@ -1230,6 +1230,7 @@ static void D3D12_INTERNAL_DestroyCommandBuffer(D3D12CommandBuffer *commandBuffe
     SDL_free(commandBuffer->usedGraphicsPipelines);
     SDL_free(commandBuffer->usedComputePipelines);
     SDL_free(commandBuffer->usedUniformBuffers);
+    SDL_free(commandBuffer->textureDownloads);
     SDL_free(commandBuffer);
 }