mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-29 11:06:07 +00:00
fixed tiling mode checking
This commit is contained in:
parent
c081d6c73b
commit
be4c88a338
|
@ -143,7 +143,7 @@ s32 PS4_SYSV_ABI sceVideoOutRegisterBuffers(s32 handle, s32 startIndex, void* co
|
||||||
LOG_TRACE_IF(log_file_videoout, "invalid aspect ratio = {}\n", attribute->aspectRatio);
|
LOG_TRACE_IF(log_file_videoout, "invalid aspect ratio = {}\n", attribute->aspectRatio);
|
||||||
return SCE_VIDEO_OUT_ERROR_INVALID_ASPECT_RATIO;
|
return SCE_VIDEO_OUT_ERROR_INVALID_ASPECT_RATIO;
|
||||||
}
|
}
|
||||||
if (attribute->tilingMode != 0 || attribute->tilingMode != 1) {
|
if (attribute->tilingMode < 0 || attribute->tilingMode > 1) {
|
||||||
LOG_TRACE_IF(log_file_videoout, "invalid tilingMode = {}\n", attribute->tilingMode);
|
LOG_TRACE_IF(log_file_videoout, "invalid tilingMode = {}\n", attribute->tilingMode);
|
||||||
return SCE_VIDEO_OUT_ERROR_INVALID_TILING_MODE;
|
return SCE_VIDEO_OUT_ERROR_INVALID_TILING_MODE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue