diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp index a4dfb7e43..180c60514 100644 --- a/src/core/hw/gpu.cpp +++ b/src/core/hw/gpu.cpp @@ -187,6 +187,14 @@ inline void Write(u32 addr, const T data) { u32 output_width = config.texture_copy.output_width * 16; u32 output_gap = config.texture_copy.output_gap * 16; + if (input_width == 0) { + input_width = 1024 * 16; + } + + if (output_width == 0) { + output_width = 1024 * 16; + } + size_t contiguous_input_size = config.texture_copy.size / input_width * (input_width + input_gap); Memory::RasterizerFlushRegion(config.GetPhysicalInputAddress(), static_cast(contiguous_input_size));