mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-08 04:18:14 +00:00
GPU: Don't pass null properties to SDL_CopyProperties()
(cherry picked from commit 300013cea7
)
This commit is contained in:

committed by
Sam Lantinga

parent
943226edc1
commit
34db21cea8
@@ -6775,7 +6775,9 @@ static SDL_GPUTexture *VULKAN_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->canBeCycled = true;
|
||||
container->activeTexture = texture;
|
||||
|
Reference in New Issue
Block a user