gl_rasterizer: Use ReadBlock instead of GetPointer for SetupVertexArray.
This commit is contained in:
parent
a6cab532f8
commit
ac19e3d061
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue