anthony.liot Posted August 16, 2011 Share Posted August 16, 2011 i have an bug whith the new sdk, when i launch my sample i have an crash, after debug i detect the line is in image.cpp in the method decompress_dxt5_alpha_block, i compile unigine with xcode and i work with iPad 2 (ios 4.3.5) static void decompress_dxt5_alpha_block(unsigned char *dest,const unsigned char *src,int width,int height,int x_stride,int y_stride) { #ifdef USE_BIG_ENDIAN .... #else Log::message("Before Crash ...\n"); unsigned long long indices = (*(const unsigned long long*)(src + 2)); Log::message("After Crash ...\n"); #endif .... } Link to comment
frustum Posted August 16, 2011 Share Posted August 16, 2011 Please try the following piece of code: unsigned long long indices = (*(const unsigned long long*)src) >> 16; Link to comment
anthony.liot Posted August 16, 2011 Author Share Posted August 16, 2011 Thanks work fine ... :) Link to comment
Recommended Posts