diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-06-28 07:16:04 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-06-28 07:16:04 +0200 |
commit | ecf6ecf32537634db15946630d62ac3bdc4fe8c9 (patch) | |
tree | 02bf917874b79e350e5f3c29c16599dc869b3d57 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | PICA: Scissor fixes and cleanups (diff) | |
download | yuzu-ecf6ecf32537634db15946630d62ac3bdc4fe8c9.tar yuzu-ecf6ecf32537634db15946630d62ac3bdc4fe8c9.tar.gz yuzu-ecf6ecf32537634db15946630d62ac3bdc4fe8c9.tar.bz2 yuzu-ecf6ecf32537634db15946630d62ac3bdc4fe8c9.tar.lz yuzu-ecf6ecf32537634db15946630d62ac3bdc4fe8c9.tar.xz yuzu-ecf6ecf32537634db15946630d62ac3bdc4fe8c9.tar.zst yuzu-ecf6ecf32537634db15946630d62ac3bdc4fe8c9.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index ab02aadc9..f8393c618 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -196,6 +196,14 @@ void RasterizerOpenGL::DrawTriangles() { (GLint)(rect.bottom + regs.viewport_corner.y * color_surface->res_scale_height), (GLsizei)(viewport_width * color_surface->res_scale_width), (GLsizei)(viewport_height * color_surface->res_scale_height)); + if (uniform_block_data.data.framebuffer_scale[0] != color_surface->res_scale_width || + uniform_block_data.data.framebuffer_scale[1] != color_surface->res_scale_height) { + + uniform_block_data.data.framebuffer_scale[0] = color_surface->res_scale_width; + uniform_block_data.data.framebuffer_scale[1] = color_surface->res_scale_height; + uniform_block_data.dirty = true; + } + // Sync and bind the texture surfaces const auto pica_textures = regs.GetTextures(); for (unsigned texture_index = 0; texture_index < pica_textures.size(); ++texture_index) { |