Fix obvious bug in KTX encoder.
authorbenjaminwagner <benjaminwagner@google.com>
Thu, 29 Sep 2016 15:20:41 +0000 (08:20 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 29 Sep 2016 15:20:41 +0000 (08:20 -0700)
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2383523002

Review-Url: https://codereview.chromium.org/2383523002

third_party/ktx/ktx.cpp

index 08282db..15a1c69 100644 (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;