mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	screencopy: Use correct dmabuf to get y-inversion flag
Because wlr_renderer_blit_dmabuf() undoes y-inversion on the source buffer, it is incorrect to pass the y-inversion flag of the source buffer to the user.
This commit is contained in:
		
							parent
							
								
									e05a85327f
								
							
						
					
					
						commit
						1d835f2035
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -208,7 +208,7 @@ static void frame_handle_output_precommit(struct wl_listener *listener,
 | 
				
			||||||
		ok = wlr_output_export_dmabuf(frame->output, &attr);
 | 
							ok = wlr_output_export_dmabuf(frame->output, &attr);
 | 
				
			||||||
		ok = ok && wlr_renderer_blit_dmabuf(renderer,
 | 
							ok = ok && wlr_renderer_blit_dmabuf(renderer,
 | 
				
			||||||
				&dma_buffer->attributes, &attr);
 | 
									&dma_buffer->attributes, &attr);
 | 
				
			||||||
		flags |= attr.flags & WLR_DMABUF_ATTRIBUTES_FLAGS_Y_INVERT ?
 | 
							flags |= dma_buffer->attributes.flags & WLR_DMABUF_ATTRIBUTES_FLAGS_Y_INVERT ?
 | 
				
			||||||
				ZWLR_SCREENCOPY_FRAME_V1_FLAGS_Y_INVERT : 0;
 | 
									ZWLR_SCREENCOPY_FRAME_V1_FLAGS_Y_INVERT : 0;
 | 
				
			||||||
		wlr_dmabuf_attributes_finish(&attr);
 | 
							wlr_dmabuf_attributes_finish(&attr);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue