fixed tiling mode checking

This commit is contained in:
georgemoralis 2023-09-16 23:05:57 +03:00
parent c081d6c73b
commit be4c88a338
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }