Browse Source
Merge pull request #5260 from lioncash/uninit
maxwell_to_vk: Initialize usage variable in SurfaceFormat()
pull/15/merge
Rodrigo Locatti
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/video_core/renderer_vulkan/maxwell_to_vk.cpp
|
|
|
@ -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 = |
|
|
|
|