diff options
author | Subv <subv2112@gmail.com> | 2016-11-30 15:37:37 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2016-11-30 15:37:37 +0100 |
commit | e3e4f27447d8d79ab89bfd40a2831539f79064e8 (patch) | |
tree | 2753254465dadeb3be1e9fb55ac5ff861910a54b /src/video_core/renderer_opengl | |
parent | Merge pull request #1820 from mailwl/service-ver (diff) | |
download | yuzu-e3e4f27447d8d79ab89bfd40a2831539f79064e8.tar yuzu-e3e4f27447d8d79ab89bfd40a2831539f79064e8.tar.gz yuzu-e3e4f27447d8d79ab89bfd40a2831539f79064e8.tar.bz2 yuzu-e3e4f27447d8d79ab89bfd40a2831539f79064e8.tar.lz yuzu-e3e4f27447d8d79ab89bfd40a2831539f79064e8.tar.xz yuzu-e3e4f27447d8d79ab89bfd40a2831539f79064e8.tar.zst yuzu-e3e4f27447d8d79ab89bfd40a2831539f79064e8.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
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<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); + GLint scissor_x1 = + 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 // scaling or doing multisampling. - GLint scissor_x2 = 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); + GLint scissor_x2 = + 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 || uniform_block_data.data.scissor_x2 != scissor_x2 || |