diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2022-05-18 21:10:46 -0700 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2022-10-22 13:36:16 -0700 |
| commit | bac75de79c4511a6d3c46261b52829bd92c871e5 (patch) | |
| tree | deb737ccb9097dc62aab85bc9a21f7be482762ed /Source/Core/VideoBackends/Vulkan/VulkanContext.cpp | |
| parent | c9ff2a9b3d588a9c88a5c6ee64ecb9e2dd33c539 (diff) | |
Fifo recorder: Fix incorrect calculation of the size of an array
The old calculation was stride * (max_index + 1), which fails if stride is less than the size of a component (for instance, if float XYZ positions are used, and the stride was set to 4 (i.e. sizeof(float)) instead of 12 (i.e. 3 * sizeof(float)), it would be missing the last 8 bytes of the final element in the array. Or, if stride was set to 0, then no bytes would be recorded at all (though that's not a useful configuration so it's unlikely to actually exist).
I'm not aware of any games affected by this issue.
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/VulkanContext.cpp')
0 files changed, 0 insertions, 0 deletions
