projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4a1737
)
Fix obvious bug in KTX encoder.
author
benjaminwagner
<benjaminwagner@google.com>
Thu, 29 Sep 2016 15:20:41 +0000
(08:20 -0700)
committer
Commit 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
patch
|
blob
|
history
diff --git
a/third_party/ktx/ktx.cpp
b/third_party/ktx/ktx.cpp
index
08282db
..
15a1c69
100644
(file)
--- 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;