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:
parent
ae85c40a0a
commit
6b1d80ec25
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user