diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-15 02:23:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-15 02:23:12 +0100 |
commit | 84d3cdf7d76de538da6121e327d332809d46af84 (patch) | |
tree | 2f9ba463335b8de46310cc5f8ad81ecb3bd32ee8 /src/video_core/renderer_opengl/renderer_opengl.cpp | |
parent | Merge pull request #2229 from ReinUsesLisp/vk-sampler-cache (diff) | |
parent | video_core/morton: Use enum to describe MortonCopyPixels128 mode (diff) | |
download | yuzu-84d3cdf7d76de538da6121e327d332809d46af84.tar yuzu-84d3cdf7d76de538da6121e327d332809d46af84.tar.gz yuzu-84d3cdf7d76de538da6121e327d332809d46af84.tar.bz2 yuzu-84d3cdf7d76de538da6121e327d332809d46af84.tar.lz yuzu-84d3cdf7d76de538da6121e327d332809d46af84.tar.xz yuzu-84d3cdf7d76de538da6121e327d332809d46af84.tar.zst yuzu-84d3cdf7d76de538da6121e327d332809d46af84.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 8b510b6ae..b97576309 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -167,9 +167,11 @@ void RendererOpenGL::LoadFBToScreenInfo(const Tegra::FramebufferConfig& framebuf Memory::RasterizerFlushVirtualRegion(framebuffer_addr, size_in_bytes, Memory::FlushMode::Flush); - VideoCore::MortonCopyPixels128(framebuffer.width, framebuffer.height, bytes_per_pixel, 4, - Memory::GetPointer(framebuffer_addr), - gl_framebuffer_data.data(), true); + constexpr u32 linear_bpp = 4; + VideoCore::MortonCopyPixels128(VideoCore::MortonSwizzleMode::MortonToLinear, + framebuffer.width, framebuffer.height, bytes_per_pixel, + linear_bpp, Memory::GetPointer(framebuffer_addr), + gl_framebuffer_data.data()); glPixelStorei(GL_UNPACK_ROW_LENGTH, static_cast<GLint>(framebuffer.stride)); |