Skip to content

Commit

Permalink
Disabled maximum image limit introduced in Qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
houmain committed Mar 6, 2023
1 parent b2fba87 commit 532c7ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/TextureData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,11 @@ bool TextureData::loadQImage(const QString &fileName, bool flipVertically)
{
auto imageReader = QImageReader(fileName);
imageReader.setAutoTransform(true);

#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
imageReader.setAllocationLimit(0);
#endif

auto image = QImage();
if (!imageReader.read(&image))
return false;
Expand Down

0 comments on commit 532c7ec

Please sign in to comment.