|
@@ -1508,7 +1508,9 @@ static SDL_GPUTexture *METAL_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->activeTexture = texture;
|
|
|
container->textureCapacity = 1;
|