- change `std::max()` to `std::min()` in glbackend.h. Fixes issue in coelckers/Raze#83.

This commit is contained in:
Mitchell Richters 2020-07-05 17:02:23 +10:00 committed by Christoph Oelckers
parent 30300bf3b2
commit dae1506182
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ public:
void SetShade(int32_t shade, int numshades)
{
renderState.Shade = std::max(shade, numshades-1);
renderState.Shade = std::min(shade, numshades-1);
}
void SetVisibility(float visibility)