mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-23 15:22:45 +01:00
maxwell_to_vk: Initialize usage variable in SurfaceFormat()
Silences a -Wmaybe-uninitialized warning
This commit is contained in:
parent
da07977db0
commit
f0d9ab0717
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ FormatInfo SurfaceFormat(const VKDevice& device, FormatType format_type, PixelFo
|
||||||
const bool attachable = tuple.usage & Attachable;
|
const bool attachable = tuple.usage & Attachable;
|
||||||
const bool storage = tuple.usage & Storage;
|
const bool storage = tuple.usage & Storage;
|
||||||
|
|
||||||
VkFormatFeatureFlags usage;
|
VkFormatFeatureFlags usage{};
|
||||||
switch (format_type) {
|
switch (format_type) {
|
||||||
case FormatType::Buffer:
|
case FormatType::Buffer:
|
||||||
usage =
|
usage =
|
||||||
|
|
Loading…
Reference in a new issue