Refactoring
Cleaned up a project, removed uneccessary includes. Fixed few errors, nothing major.
This commit is contained in:
1 parent
42dc4d6fcd
commit
1f585b4d8e
20 files changed
+39
-71
No files matched your search
@@ -27,7 +27,6 @@
|
||||
// #pragma GCC diagnostic pop
|
||||
|
||||
#include "locale_vulkan.h"
|
||||
#include "utilities/locale_common.h"
|
||||
#include "utilities/rse_errors_common.h"
|
||||
#include "utilities/logger.h"
|
||||
#include "vulkan_errors.h"
|
||||
@@ -345,7 +344,7 @@ static rse_err_t pick_physical_device()
|
||||
vkEnumeratePhysicalDevices(g_vulkan_instance, &physical_device_count, NULL);
|
||||
|
||||
if (0 == physical_device_count) {
|
||||
LOGF(vulkan_messages[VULKAN_ERROR_NO_PHYSICAL_DEVICE_FOUND]);
|
||||
LOGF(vulkan_messages[VULKAN_NO_PHYSICAL_DEVICES]);
|
||||
return VULKAN_ERROR_NO_PHYSICAL_DEVICE_FOUND;
|
||||
}
|
||||
|
||||
@@ -527,7 +526,7 @@ static rse_err_t create_memory_allocator()
|
||||
allocator_create_info.pVulkanFunctions = &vulkan_functions;
|
||||
|
||||
if (VK_SUCCESS != vmaCreateAllocator(&allocator_create_info, &g_vulkan_state.allocator)) {
|
||||
LOGF(vulkan_messages[VULKAN_ERROR_ALLOCATOR_CREATION_FAILED]);
|
||||
LOGF(vulkan_messages[VULKAN_ALLOCATOR_CREATION_FAILED]);
|
||||
return VULKAN_ERROR_ALLOCATOR_CREATION_FAILED;
|
||||
}
|
||||
|
||||
@@ -692,4 +691,4 @@ void deinit_vulkan()
|
||||
#endif
|
||||
vkDestroySurfaceKHR(g_vulkan_instance, g_vulkan_state.surface, NULL);
|
||||
vkDestroyInstance(g_vulkan_instance, NULL);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user