Skip to content

Commit

Permalink
Fixed compiler error when BASIS support is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
dkargin authored and past-due committed Jun 29, 2023
1 parent d8d8895 commit b249b0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/ivis_opengl/gfx_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b249b0a

Please sign in to comment.