summaryrefslogtreecommitdiff
path: root/src/static_libs/rg_etc
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2014-04-04 09:39:28 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2014-04-04 09:39:28 +0200
commit2e8c7cad3a89dfce5b9bf95f42a91da625036ea5 (patch)
tree394e5dcfc2354e79221c7593d4de8d0b470dce0b /src/static_libs/rg_etc
parent1005cd8f89362a3e10d5377de827d6e83ffb695c (diff)
rg_etc: Fix debug build
In 4053911e we tried to fix the debug build and failed. The function API actually asks for coords as first parameter. Our nightly builds expose this debug build and have been failing due to this. It also makes clear that the debug part of this code was never really used upstream...
Diffstat (limited to 'src/static_libs/rg_etc')
-rw-r--r--src/static_libs/rg_etc/rg_etc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static_libs/rg_etc/rg_etc1.c b/src/static_libs/rg_etc/rg_etc1.c
index b3f3f2177c..ea266ce965 100644
--- a/src/static_libs/rg_etc/rg_etc1.c
+++ b/src/static_libs/rg_etc/rg_etc1.c
@@ -1725,7 +1725,7 @@ rg_etc1_optimizer_compute(rg_etc1_optimizer *optimizer)
1725 uint i; 1725 uint i;
1726 const uint8* pSelectors = optimizer->m_best_solution.m_selectors; 1726 const uint8* pSelectors = optimizer->m_best_solution.m_selectors;
1727 1727
1728 rg_etc1_solution_coordinates_block_colors_get(optimizer->m_best_solution, block_colors); 1728 rg_etc1_solution_coordinates_block_colors_get(optimizer->m_best_solution.m_coords, block_colors);
1729 pSrc_pixels = optimizer->m_pParams->m_pSrc_pixels; 1729 pSrc_pixels = optimizer->m_pParams->m_pSrc_pixels;
1730 for (i = 0; i < n; i++) 1730 for (i = 0; i < n; i++)
1731 actual_error += rg_etc1_color_quad_u8_rgb_squared_distance(pSrc_pixels[i], block_colors[pSelectors[i]]); 1731 actual_error += rg_etc1_color_quad_u8_rgb_squared_distance(pSrc_pixels[i], block_colors[pSelectors[i]]);