Merge pull request #10089 from orbea/vulkan_warning

Silence warning with clang-9.0.1.
This commit is contained in:
Twinaphex 2020-02-02 04:08:24 +01:00 committed by GitHub
commit 07a2dc5aa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2368,11 +2368,11 @@ Framebuffer::Framebuffer(
const VkPhysicalDeviceMemoryProperties &mem_props,
const Size2D &max_size, VkFormat format,
unsigned max_levels) :
memory_properties(mem_props),
device(device),
size(max_size),
format(format),
max_levels(max(max_levels, 1u))
max_levels(max(max_levels, 1u)),
memory_properties(mem_props),
device(device)
{
RARCH_LOG("[Vulkan filter chain]: Creating framebuffer %u x %u (max %u level(s)).\n",
max_size.width, max_size.height, max_levels);