If bytesPerPixel is 0, the alphaIndex value is
4294967295.
const unsigned int bytesPerPixel = Dali::Pixel::GetBytesPerPixel(pixelFormat);
const unsigned int alphaIndex = bytesPerPixel - 1u;
Change-Id: Ia7c1dc67d913141bd8d2c2fad062d7d861843fd1
Dali::Toolkit::DevelText::UpdateBuffer(srcBuffer, dstBuffer, 0, 0, true);
+ Devel::PixelBuffer compressedSrcBuffer = Devel::PixelBuffer::New( 10, 10, Pixel::COMPRESSED_R11_EAC );
+ Devel::PixelBuffer compressedDstBuffer = Devel::PixelBuffer::New( 10, 10, Pixel::COMPRESSED_R11_EAC );
+ Dali::Toolkit::DevelText::UpdateBuffer(compressedSrcBuffer, compressedDstBuffer, 0, 0, true);
+
tet_result(TET_PASS);
END_TEST;
}
}
const unsigned int bytesPerPixel = Dali::Pixel::GetBytesPerPixel(pixelFormat);
+ if( bytesPerPixel == 0u )
+ {
+ return;
+ }
const unsigned int alphaIndex = bytesPerPixel - 1u;
const unsigned char* const srcBuffer = src.GetBuffer();