mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
- 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:
parent
c70cc474a0
commit
30300bf3b2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue