mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-27 15:09:11 +00:00
Remove newlines from error messages
This commit is contained in:
parent
d0ae093681
commit
a336b62d8b
14 changed files with 26 additions and 26 deletions
|
@ -146,7 +146,7 @@ static int loadDeviceFunctions(VulkanVideoContext *context)
|
|||
#define VULKAN_DEVICE_FUNCTION(name) \
|
||||
context->name = (PFN_##name)context->vkGetDeviceProcAddr(context->device, #name); \
|
||||
if (!context->name) { \
|
||||
return SDL_SetError("vkGetDeviceProcAddr(device, \"" #name "\") failed\n"); \
|
||||
return SDL_SetError("vkGetDeviceProcAddr(device, \"" #name "\") failed"); \
|
||||
}
|
||||
VULKAN_FUNCTIONS()
|
||||
#undef VULKAN_GLOBAL_FUNCTION
|
||||
|
@ -243,7 +243,7 @@ static int createInstance(VulkanVideoContext *context)
|
|||
result = context->vkCreateInstance(&instanceCreateInfo, NULL, &context->instance);
|
||||
if (result != VK_SUCCESS) {
|
||||
context->instance = VK_NULL_HANDLE;
|
||||
return SDL_SetError("vkCreateInstance(): %s\n", getVulkanResultString(result));
|
||||
return SDL_SetError("vkCreateInstance(): %s", getVulkanResultString(result));
|
||||
}
|
||||
if (loadInstanceFunctions(context) < 0) {
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue