In the case where mTextureWidth was greater than the width passed in,
the texture copy was scribbling outside the pixbuf array. Changed
it to use the width passed in, so the pixbuf array should contain
only the required blob data.
Change-Id: I6e7dcbf9bd9a12df06319c81448ae9641751b85a
Signed-off-by: David Steele <david.steele@samsung.com>
size_t dataIndex = 0;
for(size_t y = 0; y < height; y++)
{
- pos = y * mTextureWidth * 4;
+ pos = y * width * 4;
for(size_t x = 0; x < width; x++)
{
pixbuf[pos + x * 4] = 0xFF & blob[dataIndex].r;