mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-04 13:04:41 +00:00
Remove newlines from error messages
This commit is contained in:
committed by
Sam Lantinga
parent
d0ae093681
commit
a336b62d8b
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user