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...
This commit is contained in:
Stefan Schmidt 2014-04-04 09:39:28 +02:00
parent 1005cd8f89
commit 2e8c7cad3a
1 changed files with 1 additions and 1 deletions

View File

@ -1725,7 +1725,7 @@ rg_etc1_optimizer_compute(rg_etc1_optimizer *optimizer)
uint i;
const uint8* pSelectors = optimizer->m_best_solution.m_selectors;
rg_etc1_solution_coordinates_block_colors_get(optimizer->m_best_solution, block_colors);
rg_etc1_solution_coordinates_block_colors_get(optimizer->m_best_solution.m_coords, block_colors);
pSrc_pixels = optimizer->m_pParams->m_pSrc_pixels;
for (i = 0; i < n; i++)
actual_error += rg_etc1_color_quad_u8_rgb_squared_distance(pSrc_pixels[i], block_colors[pSelectors[i]]);