Skip to content

Commit 8b8b1c0

Browse files
committed
remove shade range check from shader
1 parent ab6a8b0 commit 8b8b1c0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Engine/Surface.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,10 +704,12 @@ struct ColorReplace
704704
if(src)
705705
{
706706
const int newShade = (src&15) + shade;
707+
#if 0
707708
if (newShade > 15)
708709
// so dark it would flip over to another color - make it black instead
709710
dest = 15;
710711
else
712+
#endif
711713
dest = newColor | newShade;
712714
}
713715
}

0 commit comments

Comments
 (0)