[tm_converter2] Fix swapped width and height.

This commit is contained in:
lzwdgc 2024-04-22 13:54:33 +03:00
parent 01121ae523
commit 34630347b0

View file

@ -104,7 +104,7 @@ void convert(const path &fn)
} }
auto save = [&](auto &&sub) { auto save = [&](auto &&sub) {
cv::Mat m(tm.width, tm.height, CV_8UC4); cv::Mat m(tm.height, tm.width, CV_8UC4);
if (tm.dxt5_compression) { if (tm.dxt5_compression) {
// this have some one off results // this have some one off results
// probaby we did different rounding in current (v1) impl // probaby we did different rounding in current (v1) impl