mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-26 22:21:06 +00:00
Avoid hitting ERR_MAX_STRLEN limit.
This commit is contained in:
parent
6d206a7b28
commit
59d17bdee0
|
@ -99,9 +99,13 @@ VkExtensionProperties *SDL_Vulkan_CreateInstanceExtensionsList(
|
||||||
VkExtensionProperties *retval;
|
VkExtensionProperties *retval;
|
||||||
if(result == VK_ERROR_INCOMPATIBLE_DRIVER)
|
if(result == VK_ERROR_INCOMPATIBLE_DRIVER)
|
||||||
{
|
{
|
||||||
|
/* Avoid the ERR_MAX_STRLEN limit by passing part of the message
|
||||||
|
* as a string argument.
|
||||||
|
*/
|
||||||
SDL_SetError(
|
SDL_SetError(
|
||||||
"You probably don't have a working Vulkan driver installed: getting Vulkan "
|
"You probably don't have a working Vulkan driver installed. %s %s %s(%d)",
|
||||||
"extensions failed: vkEnumerateInstanceExtensionProperties returned %s(%d)",
|
"Getting Vulkan extensions failed:",
|
||||||
|
"vkEnumerateInstanceExtensionProperties returned",
|
||||||
SDL_Vulkan_GetResultString(result),
|
SDL_Vulkan_GetResultString(result),
|
||||||
(int)result);
|
(int)result);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue