mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	ClangFormat: Fixed the clang-format errors
This commit is contained in:
		
							parent
							
								
									e5a7f2ef29
								
							
						
					
					
						commit
						e3e4f27447
					
				
					 2 changed files with 10 additions and 6 deletions
				
			
		|  | @ -946,8 +946,8 @@ static void ProcessTriangleInternal(const Shader::OutputVertex& v0, const Shader | ||||||
| 
 | 
 | ||||||
|                 // Blend the fog
 |                 // Blend the fog
 | ||||||
|                 for (unsigned i = 0; i < 3; i++) { |                 for (unsigned i = 0; i < 3; i++) { | ||||||
|                     combiner_output[i] = |                     combiner_output[i] = static_cast<u8>(fog_factor * combiner_output[i] + | ||||||
|                         static_cast<u8>(fog_factor * combiner_output[i] + (1.0f - fog_factor) * fog_color[i]); |                                                          (1.0f - fog_factor) * fog_color[i]); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -213,12 +213,16 @@ void RasterizerOpenGL::DrawTriangles() { | ||||||
| 
 | 
 | ||||||
|     // Scissor checks are window-, not viewport-relative, which means that if the cached texture
 |     // Scissor checks are window-, not viewport-relative, which means that if the cached texture
 | ||||||
|     // sub-rect changes, the scissor bounds also need to be updated.
 |     // sub-rect changes, the scissor bounds also need to be updated.
 | ||||||
|     GLint scissor_x1 = static_cast<GLint>(rect.left + regs.scissor_test.x1 * color_surface->res_scale_width); |     GLint scissor_x1 = | ||||||
|     GLint scissor_y1 = static_cast<GLint>(rect.bottom + regs.scissor_test.y1 * color_surface->res_scale_height); |         static_cast<GLint>(rect.left + regs.scissor_test.x1 * color_surface->res_scale_width); | ||||||
|  |     GLint scissor_y1 = | ||||||
|  |         static_cast<GLint>(rect.bottom + regs.scissor_test.y1 * color_surface->res_scale_height); | ||||||
|     // x2, y2 have +1 added to cover the entire pixel area, otherwise you might get cracks when
 |     // x2, y2 have +1 added to cover the entire pixel area, otherwise you might get cracks when
 | ||||||
|     // scaling or doing multisampling.
 |     // scaling or doing multisampling.
 | ||||||
|     GLint scissor_x2 = static_cast<GLint>(rect.left + (regs.scissor_test.x2 + 1) * color_surface->res_scale_width); |     GLint scissor_x2 = | ||||||
|     GLint scissor_y2 = static_cast<GLint>(rect.bottom + (regs.scissor_test.y2 + 1) * color_surface->res_scale_height); |         static_cast<GLint>(rect.left + (regs.scissor_test.x2 + 1) * color_surface->res_scale_width); | ||||||
|  |     GLint scissor_y2 = static_cast<GLint>( | ||||||
|  |         rect.bottom + (regs.scissor_test.y2 + 1) * color_surface->res_scale_height); | ||||||
| 
 | 
 | ||||||
|     if (uniform_block_data.data.scissor_x1 != scissor_x1 || |     if (uniform_block_data.data.scissor_x1 != scissor_x1 || | ||||||
|         uniform_block_data.data.scissor_x2 != scissor_x2 || |         uniform_block_data.data.scissor_x2 != scissor_x2 || | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue