mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Fixed formatting, added actual count to SDL error message
This commit is contained in:
parent
f9bdce61e1
commit
509db8afbd
@ -152,18 +152,14 @@ SDL_bool SDL_Vulkan_GetInstanceExtensions_Helper(unsigned *userCount,
|
|||||||
unsigned nameCount,
|
unsigned nameCount,
|
||||||
const char *const *names)
|
const char *const *names)
|
||||||
{
|
{
|
||||||
if(userNames)
|
if (userNames) {
|
||||||
{
|
unsigned i;
|
||||||
unsigned int i;
|
|
||||||
|
|
||||||
if(*userCount < nameCount)
|
if (*userCount < nameCount) {
|
||||||
{
|
SDL_SetError("Output array for SDL_Vulkan_GetInstanceExtensions needs to be at least %d big", nameCount);
|
||||||
SDL_SetError(
|
|
||||||
"Ouput array for SDL_Vulkan_GetInstanceExtensions is too small");
|
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
for(i = 0; i < nameCount; i++)
|
for (i = 0; i < nameCount; i++) {
|
||||||
{
|
|
||||||
userNames[i] = names[i];
|
userNames[i] = names[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -172,3 +168,5 @@ SDL_bool SDL_Vulkan_GetInstanceExtensions_Helper(unsigned *userCount,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* vi: set ts=4 sw=4 expandtab: */
|
||||||
|
Loading…
Reference in New Issue
Block a user