diff --git a/src/static_libs/rg_etc/rg_etc1.h b/src/static_libs/rg_etc/rg_etc1.h index 8a96cc52e3..275b0dbb3d 100644 --- a/src/static_libs/rg_etc/rg_etc1.h +++ b/src/static_libs/rg_etc/rg_etc1.h @@ -38,10 +38,10 @@ void rg_etc1_pack_block_init(); unsigned int rg_etc1_pack_block(void* pETC1_block, const unsigned int* pSrc_pixels_BGRA, rg_etc1_pack_params *pack_params); // ETC2 support: RGB8_ETC2 -void rg_etc2_rgb8_decode_block(const uint8_t *etc_block, uint32_t *bgra); +void rg_etc2_rgb8_decode_block(const unsigned char *etc_block, unsigned int *bgra); // ETC2 support: RGBA8_ETC2_EAC -void rg_etc2_rgba8_decode_block(const uint8_t *etc_block, uint32_t *bgra); +void rg_etc2_rgba8_decode_block(const unsigned char *etc_block, unsigned int *bgra); //------------------------------------------------------------------------------ // diff --git a/src/static_libs/rg_etc/rg_etc2.c b/src/static_libs/rg_etc/rg_etc2.c index 557184651b..537540d543 100644 --- a/src/static_libs/rg_etc/rg_etc2.c +++ b/src/static_libs/rg_etc/rg_etc2.c @@ -36,8 +36,8 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include "rg_etc1.h" -void rg_etc2_rgb8_decode_block(const uint8_t *etc_block, uint32_t *bgra); -void rg_etc2_rgba8_decode_block(const uint8_t *etc_block, uint32_t *bgra); +void rg_etc2_rgb8_decode_block(const unsigned char *etc_block, unsigned int *bgra); +void rg_etc2_rgba8_decode_block(const unsigned char *etc_block, unsigned int *bgra); typedef const uint8_t etc_block; @@ -244,7 +244,7 @@ _TH_paint(const uint8_t *etc, uint32_t paint_colors[4], uint32_t *bgra) } void -rg_etc2_rgb8_decode_block(const uint8_t *etc, uint32_t *bgra) +rg_etc2_rgb8_decode_block(const unsigned char *etc, unsigned int *bgra) { // Check differential mode bit if ((etc[3] & 0x2) == 0)