From 92191e13d5922ba1de4e094951becf436256510d Mon Sep 17 00:00:00 2001 From: Ferran Sole Date: Tue, 28 Jun 2016 16:49:26 +0100 Subject: [PATCH] Changes following patch "Added support for compressed texture upload to Render::NewTexture" Change-Id: I67ab1690d2dc037ec737e86b4043e05a7f3fc94d --- adaptors/common/bitmap-loader-impl.cpp | 1 + .../dali-test-suite-utils/test-gl-abstraction.h | 24 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/adaptors/common/bitmap-loader-impl.cpp b/adaptors/common/bitmap-loader-impl.cpp index 8a065ff..626acea 100644 --- a/adaptors/common/bitmap-loader-impl.cpp +++ b/adaptors/common/bitmap-loader-impl.cpp @@ -62,6 +62,7 @@ void BitmapLoader::Load() // Use bitmap->GetBufferOwnership() to transfer the buffer ownership to pixelData. // The destroy of bitmap will not release the buffer, instead, the pixelData is responsible for releasing when its reference count falls to zero. mPixelData = Dali::PixelData::New( bitmap->GetBufferOwnership(), + bitmap->GetBufferSize(), bitmap->GetImageWidth(), bitmap->GetImageHeight(), bitmap->GetPixelFormat(), diff --git a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-gl-abstraction.h b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-gl-abstraction.h index 9a93c8e..e445084 100644 --- a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-gl-abstraction.h +++ b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-gl-abstraction.h @@ -295,10 +295,34 @@ public: inline void CompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data) { + std::stringstream out; + out << target<<", "<