Round explicitly after dithering, for GPUs that don't do it properly themselves.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 19 Jan 2014 22:53:18 +0000 (23:53 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 19 Jan 2014 22:53:18 +0000 (23:53 +0100)
commit271fa61d1251144b5558555ec9873e9f24a13a70
tree338bad4bb68b5efaac55dc785db30203253eab52
parent68fd0c4ec98ed00d3ddeb87cfd809372a8b01e4b
Round explicitly after dithering, for GPUs that don't do it properly themselves.

This was causing unit test failures in the DitherEffect unit test both on
ATI and nVidia GPUs; Intel also rounds somewhat inaccurately, but much,
much better, so the extra code won't be activated for them.

I think this might be driver-dependent, but we will detect it correctly
in any case.
demo.cpp
dither_effect.cpp
dither_effect.frag
init.cpp
init.h