mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-04 07:38:47 +00:00 
			
		
		
		
	Merge pull request #404 from bunnei/more-frame-synch-fixes
GPU: Toggle active framebuffer each frame
This commit is contained in:
		
						commit
						b659cac2dc
					
				
					 2 changed files with 8 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -291,8 +291,11 @@ static void ExecuteCommand(const Command& command, u32 thread_id) {
 | 
			
		|||
        // Update framebuffer information if requested
 | 
			
		||||
        for (int screen_id = 0; screen_id < 2; ++screen_id) {
 | 
			
		||||
            FrameBufferUpdate* info = GetFrameBufferInfo(thread_id, screen_id);
 | 
			
		||||
            if (info->is_dirty)
 | 
			
		||||
 | 
			
		||||
            if (info->is_dirty) {
 | 
			
		||||
                SetBufferSwap(screen_id, info->framebuffer_info[info->index]);
 | 
			
		||||
                info->framebuffer_info->active_fb = info->framebuffer_info->active_fb ^ 1;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            info->is_dirty = false;
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue