stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2e8c7cad3a89dfce5b9bf95f42a91da625036ea5

commit 2e8c7cad3a89dfce5b9bf95f42a91da625036ea5
Author: Stefan Schmidt <[email protected]>
Date:   Fri Apr 4 09:39:28 2014 +0200

    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...
---
 src/static_libs/rg_etc/rg_etc1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/static_libs/rg_etc/rg_etc1.c b/src/static_libs/rg_etc/rg_etc1.c
index b3f3f21..ea266ce 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)
       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]]);

-- 


Reply via email to