diff options
author | FernandoS27 <fsahmkow27@gmail.com> | 2021-10-29 17:02:57 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:33 +0100 |
commit | de1c8c5c2c3131bb122351e676014cdc7c442e78 (patch) | |
tree | ef09b2327f240c21c368a644e6450d78400d4a5d /src/video_core/renderer_opengl | |
parent | texture_cache: Refactor Render Target scaling function (diff) | |
download | yuzu-de1c8c5c2c3131bb122351e676014cdc7c442e78.tar yuzu-de1c8c5c2c3131bb122351e676014cdc7c442e78.tar.gz yuzu-de1c8c5c2c3131bb122351e676014cdc7c442e78.tar.bz2 yuzu-de1c8c5c2c3131bb122351e676014cdc7c442e78.tar.lz yuzu-de1c8c5c2c3131bb122351e676014cdc7c442e78.tar.xz yuzu-de1c8c5c2c3131bb122351e676014cdc7c442e78.tar.zst yuzu-de1c8c5c2c3131bb122351e676014cdc7c442e78.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index d8ac46d2a..9b516c64f 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -976,8 +976,9 @@ void RasterizerOpenGL::SyncPointState() { oglEnable(GL_POINT_SPRITE, maxwell3d.regs.point_sprite_enable); oglEnable(GL_PROGRAM_POINT_SIZE, maxwell3d.regs.vp_point_size.enable); - - glPointSize(std::max(1.0f, maxwell3d.regs.point_size)); + const bool is_rescaling{texture_cache.IsRescaling()}; + const float scale = is_rescaling ? Settings::values.resolution_info.up_factor : 1.0f; + glPointSize(std::max(1.0f, maxwell3d.regs.point_size * scale)); } void RasterizerOpenGL::SyncLineState() { |