mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-19 22:16:36 +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