mirror of
https://github.com/PabloMK7/citra
synced 2024-11-15 05:08:23 +00:00
tests: Fix out-of-bounds access (#7085)
This commit is contained in:
parent
4ac10c4a9d
commit
597297ffb4
1 changed files with 1 additions and 1 deletions
|
@ -420,7 +420,7 @@ TEST_CASE("Address Register Offset", "[video_core][shader][shader_jit]") {
|
|||
shader.shader_setup->uniforms.f[i] = {color_f24, color_f24, color_f24,
|
||||
Pica::f24::One()};
|
||||
f_uniforms[i] = {color, color, color, 1.f};
|
||||
} else if (i >= 0x60 && i < 0x70) {
|
||||
} else if (i >= 0x60 && i < 0x64) {
|
||||
const u8 color = static_cast<u8>((i - 0x60) * 0x10);
|
||||
shader.shader_setup->uniforms.i[i - 0x60] = {color, color, color, 255};
|
||||
} else if (i >= 0x70 && i < 0x80) {
|
||||
|
|
Loading…
Reference in a new issue