rg_etc: Correct ifdef to keep function available for debug build
authorStefan Schmidt <s.schmidt@samsung.com>
Mon, 11 May 2015 12:44:57 +0000 (14:44 +0200)
committerStefan Schmidt <s.schmidt@samsung.com>
Mon, 11 May 2015 13:00:12 +0000 (15:00 +0200)
In the nightly builds we have debug enabled and this spotted the case where
rg_etc1_solution_coordinates_block_colors_get is actually still used:

lib/eet/.libs/libeet.so: undefined reference to `rg_etc1_solution_coordinates_block_colors_get'

Showed only after we switched back from release to dev mode.

@fix

src/static_libs/rg_etc/rg_etc1.c

index d3bc390..8663167 100644 (file)
@@ -1592,7 +1592,7 @@ rg_etc1_solution_coordinates_get_scaled_color(color_quad_u8 *color, const Etc1_S
    rg_etc1_color_quad_u8_init(color, br, bg, bb, 255);
 }
 
-#if 0
+#ifdef RG_ETC1_BUILD_DEBUG
 static inline void
 rg_etc1_solution_coordinates_block_colors_get(const Etc1_Solution_Coordinates *coords, color_quad_u8 colors[4])
 {