From b249b0adbd055e9678551d02e0caca3cabdf16e3 Mon Sep 17 00:00:00 2001 From: Dmitry Kargin Date: Wed, 28 Jun 2023 21:15:59 +0300 Subject: [PATCH] Fixed compiler error when BASIS support is disabled --- lib/ivis_opengl/gfx_api.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ivis_opengl/gfx_api.cpp b/lib/ivis_opengl/gfx_api.cpp index b90f5f49fc0..5e5ff2d16ed 100644 --- a/lib/ivis_opengl/gfx_api.cpp +++ b/lib/ivis_opengl/gfx_api.cpp @@ -908,9 +908,10 @@ gfx_api::texture_array* gfx_api::context::loadTextureArrayFromFiles(const std::v { for (auto& imageLoadFilename : imageLoadFilenames) { - if (strEndsWith(imageLoadFilename, ".ktx2")) + const std::string& filename = imageLoadFilename.toUtf8(); + if (strEndsWith(filename, ".ktx2")) { - debug(LOG_ERROR, "Unable to load image file: %s", imageLoadFilename.c_str()); + debug(LOG_ERROR, "Unable to load image file: %s", filename.c_str()); } } return nullptr;