mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-15 20:20:54 +00:00
- change std::max()
to std::min()
in glbackend.h. Fixes issue in coelckers/Raze#83.
This commit is contained in:
parent
30300bf3b2
commit
dae1506182
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue