Skip to content

Commit

Permalink
Fix misnamed property
Browse files Browse the repository at this point in the history
  • Loading branch information
thatcosmonaut committed Jan 14, 2025
1 parent 878ac13 commit a498565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gpu/metal/SDL_gpu_metal.m
Original file line number Diff line number Diff line change
Expand Up @@ -1520,8 +1520,8 @@ static bool METAL_SupportsSampleCount(
container->textures[0] = texture;
container->debugName = NULL;

if (SDL_HasProperty(createinfo->props, SDL_PROP_GPU_CREATETEXTURE_NAME_STRING)) {
container->debugName = SDL_strdup(SDL_GetStringProperty(createinfo->props, SDL_PROP_GPU_CREATETEXTURE_NAME_STRING, NULL));
if (SDL_HasProperty(createinfo->props, SDL_PROP_GPU_TEXTURE_CREATE_NAME_STRING)) {
container->debugName = SDL_strdup(SDL_GetStringProperty(createinfo->props, SDL_PROP_GPU_TEXTURE_CREATE_NAME_STRING, NULL));
}

return (SDL_GPUTexture *)container;
Expand Down

0 comments on commit a498565

Please sign in to comment.