GPU: Implment actual data copy of VRAM->CPU readbacks

This commit is contained in:
Connor McLaughlin 2019-09-14 20:48:15 +10:00
parent f6ef3f7ba6
commit d94d608ad7

View file

@ -478,9 +478,11 @@ bool GPU::HandleCopyRectangleVRAMToCPUCommand()
return true;
}
// TODO: Implement.
for (u32 i = 0; i < num_words; i++)
m_GPUREAD_buffer.push_back(0);
// TODO: A better way of doing this..
std::vector<u32> temp(num_words);
ReadVRAM(src_x, src_y, width, height, temp.data());
for (const u32 bits : temp)
m_GPUREAD_buffer.push_back(bits);
// Is this correct?
return true;