Index: third_party/ktx/ktx.cpp |
diff --git a/third_party/ktx/ktx.cpp b/third_party/ktx/ktx.cpp |
index 08282db45355eb07307e87d14a357f1174ea0ab7..15a1c692328e4457056b684f54f254b5397e8320 100644 |
--- a/third_party/ktx/ktx.cpp |
+++ b/third_party/ktx/ktx.cpp |
@@ -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; |