mirror of https://github.com/ZDoom/raze-gles.git
- change `std::max()` to `std::min()` in glbackend.h. Fixes issue in coelckers/Raze#83.
This commit is contained in:
parent
30300bf3b2
commit
dae1506182
|
@ -143,7 +143,7 @@ public:
|
||||||
|
|
||||||
void SetShade(int32_t shade, int numshades)
|
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)
|
void SetVisibility(float visibility)
|
||||||
|
|
Loading…
Reference in New Issue