Fix obvious bug in KTX encoder.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2383523002

Review-Url: https://codereview.chromium.org/2383523002
This commit is contained in:
benjaminwagner 2016-09-29 08:20:41 -07:00 committed by Commit bot
parent e4a17372a1
commit 2b7394b9fb

View File

@ -422,7 +422,7 @@ bool SkKTXFile::WriteBitmapToKTX(SkWStream* stream, const SkBitmap& bitmap) {
SkAutoLockPixels alp(bitmap);
const int width = bitmap.width();
const int height = bitmap.width();
const int height = bitmap.height();
const uint8_t* src = reinterpret_cast<uint8_t*>(bitmap.getPixels());
if (NULL == bitmap.getPixels()) {
return false;