Game-Fixes_HRL_Ext?

This commit is contained in:
1 2017-10-04 19:07:18 +01:00 committed by citra
parent c1cfbf5a85
commit 8f7ac1791c
2 changed files with 8 additions and 0 deletions

View File

@ -263,6 +263,10 @@ static void DisplayTransfer(const Regs::DisplayTransferConfig& config) {
}
}
if (!dst_pointer) {
LOG_CRITICAL(HW_GPU, "Invalid address %08x", dst_pointer);
break;
}
const u8* src_pixel = src_pointer + src_offset;
src_color = DecodePixel(config.input_format, src_pixel);
if (config.scaling == config.ScaleX) {

View File

@ -229,6 +229,10 @@ static void Draw(u32 command_id) {
const auto& index_info = regs.pipeline.index_array;
const u8* index_address_8 = Memory::GetPhysicalPointer(base_address + index_info.offset);
if (!index_address_8) {
LOG_CRITICAL(HW_GPU, "Invalid index_address_8 %08x", index_address_8);
return;
}
const u16* index_address_16 = reinterpret_cast<const u16*>(index_address_8);
bool index_u16 = index_info.format != 0;