diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp index 3117a8d74..ed78bba02 100644 --- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp +++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | |||
| @@ -839,7 +839,7 @@ private: | |||
| 839 | } | 839 | } |
| 840 | 840 | ||
| 841 | std::optional<VaryingTFB> GetTransformFeedbackInfo(Attribute::Index index, u8 element = 0) { | 841 | std::optional<VaryingTFB> GetTransformFeedbackInfo(Attribute::Index index, u8 element = 0) { |
| 842 | const u8 location = static_cast<u8>(index) * 4 + element; | 842 | const u8 location = static_cast<u8>(static_cast<u32>(index) * 4 + element); |
| 843 | const auto it = transform_feedback.find(location); | 843 | const auto it = transform_feedback.find(location); |
| 844 | if (it == transform_feedback.end()) { | 844 | if (it == transform_feedback.end()) { |
| 845 | return {}; | 845 | return {}; |