From 34630347b0958e29658170bf4ef2286820c6cfeb Mon Sep 17 00:00:00 2001 From: lzwdgc Date: Mon, 22 Apr 2024 13:54:33 +0300 Subject: [PATCH] [tm_converter2] Fix swapped width and height. --- src/tm_converter2/tm_converter2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tm_converter2/tm_converter2.cpp b/src/tm_converter2/tm_converter2.cpp index 9a77a2c..e48c1b8 100644 --- a/src/tm_converter2/tm_converter2.cpp +++ b/src/tm_converter2/tm_converter2.cpp @@ -104,7 +104,7 @@ void convert(const path &fn) } 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) { // this have some one off results // probaby we did different rounding in current (v1) impl