From 24ebf02e1eebee381b5f861f3556449100be4089 Mon Sep 17 00:00:00 2001 From: Robert Konrad Date: Wed, 26 Feb 2025 23:10:51 +0100 Subject: [PATCH] [D3D12] Remove weird device->Release --- .../Direct3D12/Sources/kinc/backend/graphics5/texture.c.h | 1 - 1 file changed, 1 deletion(-) diff --git a/Backends/Graphics5/Direct3D12/Sources/kinc/backend/graphics5/texture.c.h b/Backends/Graphics5/Direct3D12/Sources/kinc/backend/graphics5/texture.c.h index 9c77b6580..f992a40ae 100644 --- a/Backends/Graphics5/Direct3D12/Sources/kinc/backend/graphics5/texture.c.h +++ b/Backends/Graphics5/Direct3D12/Sources/kinc/backend/graphics5/texture.c.h @@ -30,7 +30,6 @@ static inline UINT64 GetRequiredIntermediateSize(ID3D12Resource *destinationReso D3D12_RESOURCE_DESC desc = destinationResource->GetDesc(); UINT64 requiredSize = 0; device->GetCopyableFootprints(&desc, FirstSubresource, NumSubresources, 0, NULL, NULL, NULL, &requiredSize); - device->Release(); return requiredSize; }