1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Change when we can ERR_FAIL_COND and ERR_FAIL_CONV_V to static_assert

This commit is contained in:
Mateo Dev .59
2020-02-20 11:13:08 -03:00
committed by Mateo Miccino
parent aee36ec01b
commit c933eb7acc
4 changed files with 4 additions and 4 deletions

View File

@@ -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;