mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	render/vulkan: fix multiplication order for output color matrix
This had the same bug as the texture side, but I forgot to fix it.
See:
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4988#note_2867416
Fixes: f3524de980 ("render, render/vulkan: add primaries to wlr_buffer_pass_options")
			
			
This commit is contained in:
		
							parent
							
								
									7b6eec530c
								
							
						
					
					
						commit
						f5a0992686
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -219,7 +219,7 @@ static bool render_pass_submit(struct wlr_render_pass *wlr_pass) {
 | 
				
			||||||
			float xyz_to_dst_primaries[9];
 | 
								float xyz_to_dst_primaries[9];
 | 
				
			||||||
			matrix_invert(xyz_to_dst_primaries, dst_primaries_to_xyz);
 | 
								matrix_invert(xyz_to_dst_primaries, dst_primaries_to_xyz);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			wlr_matrix_multiply(matrix, srgb_to_xyz, xyz_to_dst_primaries);
 | 
								wlr_matrix_multiply(matrix, xyz_to_dst_primaries, srgb_to_xyz);
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			wlr_matrix_identity(matrix);
 | 
								wlr_matrix_identity(matrix);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue