From dae15061826f5776d0671c5d7577a21299fff77e Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 5 Jul 2020 17:02:23 +1000 Subject: [PATCH] - change `std::max()` to `std::min()` in glbackend.h. Fixes issue in coelckers/Raze#83. --- source/glbackend/glbackend.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glbackend/glbackend.h b/source/glbackend/glbackend.h index 9025d0c95..e5bb33873 100644 --- a/source/glbackend/glbackend.h +++ b/source/glbackend/glbackend.h @@ -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)