diff options
author | bunnei <bunneidev@gmail.com> | 2018-03-23 04:01:57 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-03-23 04:01:57 +0100 |
commit | f61b9f7338b0f3667f605a399c6a1501e621b3a0 (patch) | |
tree | 92831474f5f300002da126b0774c4298a1ddf9a4 /src | |
parent | memory: Port RasterizerFlushVirtualRegion from Citra. (diff) | |
download | yuzu-f61b9f7338b0f3667f605a399c6a1501e621b3a0.tar yuzu-f61b9f7338b0f3667f605a399c6a1501e621b3a0.tar.gz yuzu-f61b9f7338b0f3667f605a399c6a1501e621b3a0.tar.bz2 yuzu-f61b9f7338b0f3667f605a399c6a1501e621b3a0.tar.lz yuzu-f61b9f7338b0f3667f605a399c6a1501e621b3a0.tar.xz yuzu-f61b9f7338b0f3667f605a399c6a1501e621b3a0.tar.zst yuzu-f61b9f7338b0f3667f605a399c6a1501e621b3a0.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp index 175f329e3..19fb2333a 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp @@ -546,7 +546,8 @@ void CachedSurface::LoadGLBuffer(VAddr load_start, VAddr load_end) { if (!is_tiled) { ASSERT(type == SurfaceType::Color); - VideoCore::MortonCopyPixels128(width, height, GetFormatBpp(), 4, + const u32 bytes_per_pixel{GetFormatBpp() >> 3}; + VideoCore::MortonCopyPixels128(width, height, bytes_per_pixel, 4, texture_src_data + start_offset, &gl_buffer[start_offset], true); } else { |