summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 ea266ce965..814a14839f 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.m_coords, 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]]);