forked from ShuriZma/suyu
1
0
Fork 0

maxwell_to_vk: Initialize usage variable in SurfaceFormat()

Silences a -Wmaybe-uninitialized warning
This commit is contained in:
Lioncash 2020-12-30 13:24:59 -05:00
parent da07977db0
commit f0d9ab0717
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ FormatInfo SurfaceFormat(const VKDevice& device, FormatType format_type, PixelFo
const bool attachable = tuple.usage & Attachable;
const bool storage = tuple.usage & Storage;
VkFormatFeatureFlags usage;
VkFormatFeatureFlags usage{};
switch (format_type) {
case FormatType::Buffer:
usage =