- allow shade in glbackend.h to accept negative values, but still at a max of numshades-1.

* This fixes some issues with distance lighting issues in Duke3D as reported at https://forum.zdoom.org/viewtopic.php?f=341&t=68838&start=75#p1158417.
This commit is contained in:
Mitchell Richters 2020-07-05 16:53:43 +10:00 committed by Christoph Oelckers
parent c70cc474a0
commit 30300bf3b2

View file

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