GPU: Don't pass null properties to SDL_CopyProperties()

This commit is contained in:
Lucas Murray
2025-04-04 16:01:41 +11:00
committed by Sam Lantinga
parent 8ad64aba1b
commit 300013cea7
3 changed files with 9 additions and 3 deletions

View File

@@ -3454,7 +3454,9 @@ static SDL_GPUTexture *D3D12_CreateTexture(
// Copy properties so we don't lose information when the client destroys them
container->header.info = *createinfo;
container->header.info.props = SDL_CreateProperties();
SDL_CopyProperties(createinfo->props, container->header.info.props);
if (createinfo->props) {
SDL_CopyProperties(createinfo->props, container->header.info.props);
}
container->textureCapacity = 1;
container->textureCount = 1;