mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	pica/shader_interpreter: fix off-by-one in LOOP
This commit is contained in:
		
							parent
							
								
									c6a2e519ef
								
							
						
					
					
						commit
						c89f804a01
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -631,7 +631,7 @@ static void RunInterpreter(const ShaderSetup& setup, UnitState& state, DebugData | |||
|                 state.address_registers[2] = loop_param.y; | ||||
| 
 | ||||
|                 Record<DebugDataRecord::LOOP_INT_IN>(debug_data, iteration, loop_param); | ||||
|                 call(program_counter + 1, instr.flow_control.dest_offset - program_counter + 1, | ||||
|                 call(program_counter + 1, instr.flow_control.dest_offset - program_counter, | ||||
|                      instr.flow_control.dest_offset + 1, loop_param.x, loop_param.z); | ||||
|                 break; | ||||
|             } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue