015d7b9779
This fixes various bugs that appear in the HW rasterizer after switching between it and the SW one during emulation.