diff --git a/runtime/src/gpu_gl_renderer.c b/runtime/src/gpu_gl_renderer.c index 0ed2d939..b25c5868 100644 --- a/runtime/src/gpu_gl_renderer.c +++ b/runtime/src/gpu_gl_renderer.c @@ -1366,7 +1366,7 @@ static const char *TEX_FS = "}\n" "int stable_texel(ivec2 p){\n" " /* Clamp before wrap, so a footprint left of u=0 cannot pick up u=255. */\n" - " if ((u_twin.x | u_twin.y) == 0) p=clamp(p,v_limits.xy,v_limits.zw);\n" + " if ((v_twin & 1023) == 0) p=clamp(p,v_limits.xy,v_limits.zw);\n" " return fetch_texel(p.x,p.y);\n" "}\n" "vec4 stable_bilinear(vec2 uv,int stp){\n" diff --git a/runtime/tests/test_interp_cop0_read_sample.c b/runtime/tests/test_interp_cop0_read_sample.c index 3e160db6..89b5d219 100644 --- a/runtime/tests/test_interp_cop0_read_sample.c +++ b/runtime/tests/test_interp_cop0_read_sample.c @@ -20,6 +20,9 @@ #include #include "cpu_state.h" +/* No mod hooks are active in this interpreter fixture. */ +uint32_t g_psx_mod_instruction_hooks = 0; + int interp_test_step(CPUState *cpu, uint32_t pc, uint32_t insn, uint32_t *next); /* Clock, cache and device seams read on the charged path. */ diff --git a/runtime/tests/test_interp_refused_game_text.c b/runtime/tests/test_interp_refused_game_text.c index 37b86f55..49887aee 100644 --- a/runtime/tests/test_interp_refused_game_text.c +++ b/runtime/tests/test_interp_refused_game_text.c @@ -20,6 +20,10 @@ #include #include "cpu_state.h" +/* No mod hooks are active in this interpreter fixture. */ +uint32_t g_psx_mod_instruction_hooks = 0; +uint32_t g_psx_mod_function_entry_hooks = 0; + int dirty_ram_dispatch(CPUState *cpu, uint32_t addr, uint32_t stop_addr); extern uint64_t g_dirty_ram_blocks_run; /* one per interpreter hand-back */