X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftest-actor-utils.cpp;h=eb1ab885327b7af05d48eafdd14ffaba51c3aa36;hb=2e3b4a1a1819c92b2d925b52cc9d1ea4faa22f69;hp=40388b32fee6e3927adf26748882887c9a349994;hpb=27f1cf254ac125105e5ea4b5b830d6f58155b685;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-actor-utils.cpp b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-actor-utils.cpp index 40388b3..eb1ab88 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-actor-utils.cpp +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-actor-utils.cpp @@ -124,7 +124,7 @@ Texture CreateTexture(TextureType::Type type, Pixel::Format format, int width, i { Texture texture = Texture::New(type, format, width, height); - int bufferSize = width * height * 2; + int bufferSize = width * height * GetBytesPerPixel(format); uint8_t* buffer = reinterpret_cast(malloc(bufferSize)); PixelData pixelData = PixelData::New(buffer, bufferSize, width, height, format, PixelData::FREE); texture.Upload(pixelData, 0u, 0u, 0u, 0u, width, height);