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:
parent
e4a17372a1
commit
2b7394b9fb
2
third_party/ktx/ktx.cpp
vendored
2
third_party/ktx/ktx.cpp
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user