Avoid code duplication in SDL_GetPixelFormatDetails

This commit is contained in:
Anonymous Maarten 2024-07-14 01:20:02 +02:00
parent 4e3f35ccbf
commit c80665a696
1 changed files with 1 additions and 2 deletions

View File

@ -661,8 +661,7 @@ const SDL_PixelFormatDetails *SDL_GetPixelFormatDetails(SDL_PixelFormat format)
}
if (SDL_FindInHashTable(SDL_format_details, (const void *)(uintptr_t)format, (const void **)&details)) {
SDL_UnlockMutex(SDL_format_details_lock);
return details;
goto done;
}
/* Allocate an empty pixel format structure, and initialize it */