mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-14 23:10:33 +02:00
CopyFramebufferToMemory always returned true, even when glReadPixels failed, and then copied out whatever the readback buffer held from before. Depth was labeled D24_S8 while GL reads it as float, and the conversion ignored the source format, so only a D32F destination came out right. Record the format and the result of each read, convert from that, and return it. That also fixes the image readback reusing the aspect of an earlier framebuffer readback. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>