rg_etc1: Fix encoding of solid color blocks
authorJean-Philippe Andre <jp.andre@samsung.com>
Fri, 18 Apr 2014 06:31:43 +0000 (15:31 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Fri, 18 Apr 2014 06:43:07 +0000 (15:43 +0900)
commitca0c608b66017d85bcaa3580c32000b7595d8e52
treebdf8663c888695d18904a04d29ceb2dd7c22758d
parent7ff410b9f611b0629cad0944150e47288db7e5ec
rg_etc1: Fix encoding of solid color blocks

The ETC1 encoder is expected to write all 8 bytes of the
output data. But in case of a solid color block, it was writing
only 1 of the first 3 bytes (R, G, B). So lots of solid blocks
were containing invalid data (for instance: R + dR < 0 or > 255).
src/static_libs/rg_etc/rg_etc1.c