mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
GPU: Clean up properties in SDL_ReleaseGPUTexture (#13378)
This commit is contained in:
@@ -1441,6 +1441,8 @@ static void D3D12_INTERNAL_ReleaseTextureContainer(
|
|||||||
container->textures[i]);
|
container->textures[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SDL_DestroyProperties(container->header.info.props);
|
||||||
|
|
||||||
// Containers are just client handles, so we can destroy immediately
|
// Containers are just client handles, so we can destroy immediately
|
||||||
if (container->debugName) {
|
if (container->debugName) {
|
||||||
SDL_free(container->debugName);
|
SDL_free(container->debugName);
|
||||||
|
@@ -888,6 +888,7 @@ static void METAL_INTERNAL_DestroyTextureContainer(
|
|||||||
container->textures[i]->handle = nil;
|
container->textures[i]->handle = nil;
|
||||||
SDL_free(container->textures[i]);
|
SDL_free(container->textures[i]);
|
||||||
}
|
}
|
||||||
|
SDL_DestroyProperties(container->header.info.props);
|
||||||
if (container->debugName != NULL) {
|
if (container->debugName != NULL) {
|
||||||
SDL_free(container->debugName);
|
SDL_free(container->debugName);
|
||||||
}
|
}
|
||||||
|
@@ -6951,6 +6951,8 @@ static void VULKAN_ReleaseTexture(
|
|||||||
VULKAN_INTERNAL_ReleaseTexture(renderer, vulkanTextureContainer->textures[i]);
|
VULKAN_INTERNAL_ReleaseTexture(renderer, vulkanTextureContainer->textures[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SDL_DestroyProperties(vulkanTextureContainer->header.info.props);
|
||||||
|
|
||||||
// Containers are just client handles, so we can destroy immediately
|
// Containers are just client handles, so we can destroy immediately
|
||||||
if (vulkanTextureContainer->debugName != NULL) {
|
if (vulkanTextureContainer->debugName != NULL) {
|
||||||
SDL_free(vulkanTextureContainer->debugName);
|
SDL_free(vulkanTextureContainer->debugName);
|
||||||
|
Reference in New Issue
Block a user