mirror of
https://github.com/citra-emu/citra.git
synced 2025-02-18 21:40:10 +00:00
Game-Fixes_HRL_Ext?
This commit is contained in:
parent
c1cfbf5a85
commit
8f7ac1791c
@ -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;
|
const u8* src_pixel = src_pointer + src_offset;
|
||||||
src_color = DecodePixel(config.input_format, src_pixel);
|
src_color = DecodePixel(config.input_format, src_pixel);
|
||||||
if (config.scaling == config.ScaleX) {
|
if (config.scaling == config.ScaleX) {
|
||||||
|
@ -229,6 +229,10 @@ static void Draw(u32 command_id) {
|
|||||||
|
|
||||||
const auto& index_info = regs.pipeline.index_array;
|
const auto& index_info = regs.pipeline.index_array;
|
||||||
const u8* index_address_8 = Memory::GetPhysicalPointer(base_address + index_info.offset);
|
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);
|
const u16* index_address_16 = reinterpret_cast<const u16*>(index_address_8);
|
||||||
bool index_u16 = index_info.format != 0;
|
bool index_u16 = index_info.format != 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user