Skip to content

Commit

Permalink
Avoid hitting ERR_MAX_STRLEN limit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Callow committed Sep 22, 2017
1 parent 6d206a7 commit 59d17bd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/video/SDL_vulkan_utils.c
Expand Up @@ -99,9 +99,13 @@ VkExtensionProperties *SDL_Vulkan_CreateInstanceExtensionsList(
VkExtensionProperties *retval;
if(result == VK_ERROR_INCOMPATIBLE_DRIVER)
{
/* Avoid the ERR_MAX_STRLEN limit by passing part of the message
* as a string argument.
*/
SDL_SetError(
"You probably don't have a working Vulkan driver installed: getting Vulkan "
"extensions failed: vkEnumerateInstanceExtensionProperties returned %s(%d)",
"You probably don't have a working Vulkan driver installed. %s %s %s(%d)",
"Getting Vulkan extensions failed:",
"vkEnumerateInstanceExtensionProperties returned",
SDL_Vulkan_GetResultString(result),
(int)result);
return NULL;
Expand Down

0 comments on commit 59d17bd

Please sign in to comment.