Remove newlines from error messages

This commit is contained in:
Petar Popovic authored and Sam Lantinga committed 2025-01-23 11:45:04 -08:00
1 parent d0ae093681
commit a336b62d8b
14 files changed
+26 -26

No files matched your search

+2 -2
View File
@@ -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;