summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-18 00:19:35 +0200
committerbunnei <bunneidev@gmail.com>2018-10-18 00:19:35 +0200
commit2a035a1f6f6e834adc639d51884ea36dde5a3445 (patch)
treebef2f9bef7400a76505ad9292b506ddb74b58a87 /src
parentgl_rasterizer_cache: Use AccurateCopySurface for use_accurate_gpu_emulation. (diff)
downloadyuzu-2a035a1f6f6e834adc639d51884ea36dde5a3445.tar
yuzu-2a035a1f6f6e834adc639d51884ea36dde5a3445.tar.gz
yuzu-2a035a1f6f6e834adc639d51884ea36dde5a3445.tar.bz2
yuzu-2a035a1f6f6e834adc639d51884ea36dde5a3445.tar.lz
yuzu-2a035a1f6f6e834adc639d51884ea36dde5a3445.tar.xz
yuzu-2a035a1f6f6e834adc639d51884ea36dde5a3445.tar.zst
yuzu-2a035a1f6f6e834adc639d51884ea36dde5a3445.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
index 0456472fd..8a0ed964a 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
@@ -354,12 +354,9 @@ void MortonCopy(u32 stride, u32 block_height, u32 height, u32 block_depth, u32 d
const std::size_t size_to_copy{std::min(gl_buffer_size, data.size())};
memcpy(gl_buffer, data.data(), size_to_copy);
} else {
- std::vector<u8> data(gl_buffer_size);
Tegra::Texture::CopySwizzledData(stride / tile_size, height / tile_size, depth,
- bytes_per_pixel, bytes_per_pixel, data.data(), gl_buffer,
- false, block_height, block_depth);
- const std::size_t size_to_copy{std::min(gl_buffer_size, data.size())};
- memcpy(Memory::GetPointer(addr), data.data(), size_to_copy);
+ bytes_per_pixel, bytes_per_pixel, Memory::GetPointer(addr),
+ gl_buffer, false, block_height, block_depth);
}
}