The function ApplyClut16 applies a color lookup table to a surface.
This change disables the Assembler code paths in that function to use the C++ code path instead and adds some unit tests.
There was a subtle typo in a bitmask constant. This error had the noticeable effect that the whole terrain was rendered as shadowy when using the software renderer and the C++ code path.
The test reference data was generated with the non-Pentium Assembler code path.
The function
ApplyClut16
applies a color lookup table to a surface. This change disables the Assembler code paths in that function to use the C++ code path instead and adds some unit tests.There was a subtle typo in a bitmask constant. This error had the noticeable effect that the whole terrain was rendered as shadowy when using the software renderer and the C++ code path.
The test reference data was generated with the non-Pentium Assembler code path.
Correct version:
Incorrect version:
![TPass002](https://user-images.githubusercontent.com/5839584/127740923-cb9fcb8e-a7cd-401b-a112-182d8bd11128.png)