Scott Mansell b8695a57da Fix incorrect clamping in SWRenderer.
A previous PR changed a whole lot of min/maxes to std::min/std::max
but made a mistake here and used a templated min which cast it's
arguments to unsigned instead of casting return value.

This resulted in glitchy artifacts in bright areas (See issue 7439)

I rewrote the code to use a proper clamping function so it's cleaner
to read.
2014-07-15 21:15:49 +12:00
..
2014-07-13 02:16:51 +02:00
2014-06-15 15:56:42 -07:00
2014-07-11 16:10:20 +02:00
2014-07-11 16:10:20 +02:00
2014-04-17 10:39:02 +02:00
2014-03-09 21:14:26 +01:00
2014-07-11 16:07:23 +02:00
2014-07-11 16:10:20 +02:00
2014-07-11 16:10:20 +02:00
2014-03-09 21:14:26 +01:00
2014-03-14 13:51:23 -04:00
2014-03-14 13:51:23 -04:00
2014-03-09 21:14:26 +01:00
2014-03-09 21:14:26 +01:00
2014-03-07 21:40:59 +13:00
2014-06-22 20:04:46 +02:00
2014-06-22 20:04:46 +02:00
2014-03-14 13:51:23 -04:00
2014-03-14 13:51:23 -04:00
2014-03-09 21:14:26 +01:00
2014-03-09 21:14:26 +01:00
2014-03-14 13:51:23 -04:00
2014-03-14 13:51:23 -04:00
2014-03-14 13:51:23 -04:00
2014-03-14 13:51:23 -04:00
2014-07-11 16:07:23 +02:00