Explorar o código

vk_shader_decompiler: Fix implicit type conversion

Co-Authored-By: Mat M. <mathew1800@gmail.com>
Rodrigo Locatti %!s(int64=6) %!d(string=hai) anos
pai
achega
47459f6a36
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/video_core/renderer_vulkan/vk_shader_decompiler.cpp

+ 1 - 1
src/video_core/renderer_vulkan/vk_shader_decompiler.cpp

@@ -839,7 +839,7 @@ private:
     }
 
     std::optional<VaryingTFB> GetTransformFeedbackInfo(Attribute::Index index, u8 element = 0) {
-        const u8 location = static_cast<u8>(index) * 4 + element;
+        const u8 location = static_cast<u8>(static_cast<u32>(index) * 4 + element);
         const auto it = transform_feedback.find(location);
         if (it == transform_feedback.end()) {
             return {};