mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-24 02:05:46 +01: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 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;
|
||||
|
Loading…
Reference in New Issue
Block a user