1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 14:53:21 +02:00

Allow arbitrary large images

GeoTIFFs can be very huge, the limit of 128MB set in Qt6 is not sufficient for
real-life aerial images. Behave like Qt5 with no limit.
This commit is contained in:
Martin Tůma 2023-02-22 22:45:18 +01:00
parent 9538d15d79
commit f952e02535

View File

@ -6,6 +6,7 @@
#include <QNetworkAccessManager>
#include <QLibraryInfo>
#include <QSurfaceFormat>
#include <QImageReader>
#ifdef Q_OS_ANDROID
#include <QCoreApplication>
#include <QJniObject>
@ -59,6 +60,9 @@ App::App(int &argc, char **argv) : QApplication(argc, argv)
fmt.setStencilBufferSize(8);
fmt.setSamples(4);
QSurfaceFormat::setDefaultFormat(fmt);
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QImageReader::setAllocationLimit(0);
#endif // QT6
loadDatums();
loadPCSs();