mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Fix incorrect port_id use
This commit is contained in:
		
							parent
							
								
									eced511382
								
							
						
					
					
						commit
						28014496c6
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -901,9 +901,10 @@ void Module::Interface::GetLatestVsyncTiming(Kernel::HLERequestContext& ctx) { | ||||||
|     IPC::RequestBuilder rb = rp.MakeBuilder(1, 2); |     IPC::RequestBuilder rb = rp.MakeBuilder(1, 2); | ||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
| 
 | 
 | ||||||
|  |     const std::size_t port_id = port_select.m_val == 1 ? 0 : 1; | ||||||
|     std::vector<u8> out(count * sizeof(s64_le)); |     std::vector<u8> out(count * sizeof(s64_le)); | ||||||
|     std::size_t offset = 0; |     std::size_t offset = 0; | ||||||
|     for (const s64_le timing : cam->ports[port_select.m_val].vsync_timings) { |     for (const s64_le timing : cam->ports[port_id].vsync_timings) { | ||||||
|         std::memcpy(out.data() + offset * sizeof(timing), &timing, sizeof(timing)); |         std::memcpy(out.data() + offset * sizeof(timing), &timing, sizeof(timing)); | ||||||
|         offset++; |         offset++; | ||||||
|         if (offset >= count) { |         if (offset >= count) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue