mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-14 06:50:29 +02:00
The crosshair turns red, and lock-on works, when stencil bit 3 is set at the centre of the frame, which the game tests by reading the pixel from VRAM with the CPU (#17936). Hook that and read back the stencil of that row into the alpha bytes in RAM. The alpha the hardware backends keep doesn't follow stencil everywhere, so reading color isn't enough. Adds PerformReadbackStencilToMemory for this (8888 only for now). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>