Skip to content

Commit

Permalink
Remove the isRGBAAA() property from the Image class. (#2098)
Browse files Browse the repository at this point in the history
  • Loading branch information
domchen authored Jan 18, 2024
1 parent 12deaae commit 396ee2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
{
"url": "${PAG_GROUP}/tgfx.git",
"commit": "7784db3788b4cb17eae05f7e2ce615a37cf7a25e",
"commit": "b050b5a7198af9d25b2afe29bb5bb8f7844875eb",
"dir": "third_party/tgfx"
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/rendering/graphics/Picture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class ImageProxyPicture : public Picture {
return nullptr;
}
bool needRescale = !image->isTextureBacked() && scaleFactor != 1.0f;
if (needRescale || image->isRGBAAA()) {
if (needRescale) {
image = RescaleImage(cache->getContext(), image, scaleFactor, mipMapped);
} else {
image = image->makeTextureImage(cache->getContext());
Expand Down

0 comments on commit 396ee2b

Please sign in to comment.