diff options
author | Mateo Dev .59 <mateomiccino@gmail.com> | 2020-02-20 11:13:08 -0300 |
---|---|---|
committer | Mateo Miccino <mateomiccino@gmail.com> | 2020-03-04 04:44:47 -0300 |
commit | c933eb7accce31e74a244ea5ed0c6bd5b0aa14ca (patch) | |
tree | 23d41339ad6aaf7a4f1c27901ffef3d5102ea920 /drivers/vulkan/rendering_device_vulkan.cpp | |
parent | aee36ec01b346a9b1bef607eb0b66722f58eeca1 (diff) |
Change when we can ERR_FAIL_COND and ERR_FAIL_CONV_V to static_assert
Diffstat (limited to 'drivers/vulkan/rendering_device_vulkan.cpp')
-rw-r--r-- | drivers/vulkan/rendering_device_vulkan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vulkan/rendering_device_vulkan.cpp b/drivers/vulkan/rendering_device_vulkan.cpp index 2bf8a16091..8cea8ebb86 100644 --- a/drivers/vulkan/rendering_device_vulkan.cpp +++ b/drivers/vulkan/rendering_device_vulkan.cpp @@ -6862,7 +6862,7 @@ void RenderingDeviceVulkan::initialize(VulkanContext *p_context) { max_descriptors_per_pool = GLOBAL_DEF("rendering/vulkan/descriptor_pools/max_descriptors_per_pool", 64); //check to make sure DescriptorPoolKey is good - ERR_FAIL_COND(sizeof(uint64_t) * 3 < UNIFORM_TYPE_MAX * sizeof(uint16_t)); + static_assert(sizeof(uint64_t) * 3 >= UNIFORM_TYPE_MAX * sizeof(uint16_t)); draw_list = NULL; draw_list_count = 0; |