Fixed whitespace
This commit is contained in:
@@ -91,11 +91,11 @@ struct VulkanVideoContext
|
||||
|
||||
VulkanDeviceFeatures features;
|
||||
|
||||
PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr;
|
||||
PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr;
|
||||
#define VULKAN_GLOBAL_FUNCTION(name) PFN_##name name;
|
||||
#define VULKAN_INSTANCE_FUNCTION(name) PFN_##name name;
|
||||
#define VULKAN_DEVICE_FUNCTION(name) PFN_##name name;
|
||||
VULKAN_FUNCTIONS()
|
||||
VULKAN_FUNCTIONS()
|
||||
#undef VULKAN_GLOBAL_FUNCTION
|
||||
#undef VULKAN_INSTANCE_FUNCTION
|
||||
#undef VULKAN_DEVICE_FUNCTION
|
||||
@@ -440,7 +440,7 @@ static int findPhysicalDevice(VulkanVideoContext *context)
|
||||
if (!context->physicalDevice) {
|
||||
return SDL_SetError("Vulkan: no viable physical devices found");
|
||||
}
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void initDeviceFeatures(VulkanDeviceFeatures *features)
|
||||
@@ -649,24 +649,24 @@ done:
|
||||
if (result != VK_SUCCESS) {
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
VulkanVideoContext *CreateVulkanVideoContext(SDL_Window *window)
|
||||
{
|
||||
VulkanVideoContext *context = SDL_calloc(1, sizeof(*context));
|
||||
if (!context) {
|
||||
return NULL;
|
||||
}
|
||||
VulkanVideoContext *context = SDL_calloc(1, sizeof(*context));
|
||||
if (!context) {
|
||||
return NULL;
|
||||
}
|
||||
if (loadGlobalFunctions(context) < 0 ||
|
||||
createInstance(context) < 0 ||
|
||||
createSurface(context, window) < 0 ||
|
||||
findPhysicalDevice(context) < 0 ||
|
||||
createDevice(context) < 0) {
|
||||
DestroyVulkanVideoContext(context);
|
||||
return NULL;
|
||||
}
|
||||
return context;
|
||||
DestroyVulkanVideoContext(context);
|
||||
return NULL;
|
||||
}
|
||||
return context;
|
||||
}
|
||||
|
||||
void SetupVulkanRenderProperties(VulkanVideoContext *context, SDL_PropertiesID props)
|
||||
|
||||
Reference in New Issue
Block a user