diff options
| author | rdenno <rhysdenno@gmail.com> | 2026-11-02 06:51:36 -0500 |
|---|---|---|
| committer | rdenno <rhysdenno@gmail.com> | 2026-11-02 06:51:36 -0500 |
| commit | 8af82558bb25bb2ab46f3d750d3da55b82512e41 (patch) | |
| tree | ed2cdcec0a591619e90a8a31d61ec3341bd000db /src/input_common/drivers/virtual_gamepad.cpp | |
| parent | 9210b8d69d172b5456e90cbd56b8f2bacbd7386b (diff) | |
texture_cache: look up X8Z24 with UNORM, UINT, UNORM, UNORM components
X8Z24 was only known with UINT in the last three components. Mario
Tennis Fever samples its depth buffer as X8Z24 with components
UNORM, UINT, UNORM, UNORM (as S8Z24 already is in the table), which
hit the "texture format=42" fallback to A8B8G8R8. The depth image was
then copied into a colour image of the wrong format every frame (with
"Unimplemented" layer-count asserts) and read as colour, and distant
scenery around the court (the arch and the castle stadium) wasn't
drawn.
Map it to X8_D24_UNORM like the other X8Z24 entry.
Assisted-by: Claude Opus 5.5 (diagnosis, fix and testing)
Diffstat (limited to 'src/input_common/drivers/virtual_gamepad.cpp')
0 files changed, 0 insertions, 0 deletions
