diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-05-18 16:26:01 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-05-18 16:26:01 +0200 |
commit | ec7be88fbb4062af20b77198007d815c321c2850 (patch) | |
tree | 85fbe24dc79d2e8072990939f1e7e8de97a84e84 /src/anim-atlas.cpp | |
parent | 44c8e45d71e5320aedaa5b4b839e636a0d973f7f (diff) |
wip vobj
Diffstat (limited to 'src/anim-atlas.cpp')
-rw-r--r-- | src/anim-atlas.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/anim-atlas.cpp b/src/anim-atlas.cpp index cdffea28..4dbb7104 100644 --- a/src/anim-atlas.cpp +++ b/src/anim-atlas.cpp @@ -176,6 +176,9 @@ void anim_atlas::make_bitmask_(const ImageView2D& tex, BitArray& array) BitArray anim_atlas::make_bitmask(const ImageView2D& tex) { + if (tex.pixelSize() == 3) + return {}; + const auto size = tex.pixels().size(); auto array = BitArray{NoInit, size[0]*size[1]}; make_bitmask_(tex, array); |