You've already forked godot
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:
committed by
Mateo Miccino
parent
aee36ec01b
commit
c933eb7acc
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user