2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #5260 from lioncash/uninit

maxwell_to_vk: Initialize usage variable in SurfaceFormat()
This commit is contained in:
Rodrigo Locatti 2020-12-30 16:17:01 -03:00 committed by GitHub
commit dab7711524
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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