From e3e4f27447d8d79ab89bfd40a2831539f79064e8 Mon Sep 17 00:00:00 2001 From: Subv Date: Wed, 30 Nov 2016 09:37:37 -0500 Subject: [PATCH] ClangFormat: Fixed the clang-format errors --- src/video_core/rasterizer.cpp | 4 ++-- src/video_core/renderer_opengl/gl_rasterizer.cpp | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp index f81f529b6..b9f5d4533 100644 --- a/src/video_core/rasterizer.cpp +++ b/src/video_core/rasterizer.cpp @@ -946,8 +946,8 @@ static void ProcessTriangleInternal(const Shader::OutputVertex& v0, const Shader // Blend the fog for (unsigned i = 0; i < 3; i++) { - combiner_output[i] = - static_cast(fog_factor * combiner_output[i] + (1.0f - fog_factor) * fog_color[i]); + combiner_output[i] = static_cast(fog_factor * combiner_output[i] + + (1.0f - fog_factor) * fog_color[i]); } } diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index e5f4366c1..1b734aaa5 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -213,12 +213,16 @@ void RasterizerOpenGL::DrawTriangles() { // 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. - GLint scissor_x1 = static_cast(rect.left + regs.scissor_test.x1 * color_surface->res_scale_width); - GLint scissor_y1 = static_cast(rect.bottom + regs.scissor_test.y1 * color_surface->res_scale_height); + GLint scissor_x1 = + static_cast(rect.left + regs.scissor_test.x1 * color_surface->res_scale_width); + GLint scissor_y1 = + static_cast(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 // scaling or doing multisampling. - GLint scissor_x2 = static_cast(rect.left + (regs.scissor_test.x2 + 1) * color_surface->res_scale_width); - GLint scissor_y2 = static_cast(rect.bottom + (regs.scissor_test.y2 + 1) * color_surface->res_scale_height); + GLint scissor_x2 = + static_cast(rect.left + (regs.scissor_test.x2 + 1) * color_surface->res_scale_width); + GLint scissor_y2 = static_cast( + rect.bottom + (regs.scissor_test.y2 + 1) * color_surface->res_scale_height); if (uniform_block_data.data.scissor_x1 != scissor_x1 || uniform_block_data.data.scissor_x2 != scissor_x2 ||