1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-23 11:13:19 +01:00

cellCamera: fix read_mode

This commit is contained in:
Megamouse 2018-12-18 23:59:35 +01:00
parent ae85c40a0a
commit 6b1d80ec25

View File

@ -433,7 +433,7 @@ s32 cellCameraOpenEx(s32 dev_num, vm::ptr<CellCameraInfoEx> info)
std::lock_guard lock(g_camera->mutex);
if (info->read_mode == CELL_CAMERA_READ_FUNCCALL && !info->buffer)
if (info->read_mode != CELL_CAMERA_READ_DIRECT && !info->buffer)
{
info->buffer = vm::cast(vm::alloc(vbuf_size, vm::memory_location_t::main));
info->bytesize = vbuf_size;