mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
gl_rasterizer: Use ReadBlock instead of GetPointer for SetupVertexArray.
This commit is contained in:
parent
a6cab532f8
commit
ac19e3d061
@ -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 u32 data_size{vertex_array.stride * regs.vertex_buffer.count};
|
||||||
const VAddr data_addr{memory_manager->PhysicalToVirtualAddress(vertex_array.StartAddress())};
|
const VAddr data_addr{memory_manager->PhysicalToVirtualAddress(vertex_array.StartAddress())};
|
||||||
res_cache.FlushRegion(data_addr, data_size, nullptr);
|
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;
|
array_ptr += data_size;
|
||||||
buffer_offset += data_size;
|
buffer_offset += data_size;
|
||||||
|
Loading…
Reference in New Issue
Block a user