diff options
author | bunnei <bunneidev@gmail.com> | 2018-03-25 07:00:41 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-03-27 03:17:02 +0200 |
commit | ac19e3d06193d5035694bb9918c705d5eb6762db (patch) | |
tree | f4250f89b864ad85b7e48281136674f7448d19b4 /src | |
parent | gl_rasterizer: Normalize vertex array data as appropriate. (diff) | |
download | yuzu-ac19e3d06193d5035694bb9918c705d5eb6762db.tar yuzu-ac19e3d06193d5035694bb9918c705d5eb6762db.tar.gz yuzu-ac19e3d06193d5035694bb9918c705d5eb6762db.tar.bz2 yuzu-ac19e3d06193d5035694bb9918c705d5eb6762db.tar.lz yuzu-ac19e3d06193d5035694bb9918c705d5eb6762db.tar.xz yuzu-ac19e3d06193d5035694bb9918c705d5eb6762db.tar.zst yuzu-ac19e3d06193d5035694bb9918c705d5eb6762db.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 7950bac9e..c4abbb2cd 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -188,7 +188,7 @@ void RasterizerOpenGL::SetupVertexArray(u8* array_ptr, GLintptr buffer_offset) { const u32 data_size{vertex_array.stride * regs.vertex_buffer.count}; const VAddr data_addr{memory_manager->PhysicalToVirtualAddress(vertex_array.StartAddress())}; res_cache.FlushRegion(data_addr, data_size, nullptr); - std::memcpy(array_ptr, Memory::GetPointer(data_addr), data_size); + Memory::ReadBlock(data_addr, array_ptr, data_size); array_ptr += data_size; buffer_offset += data_size; |