renderer: Fix loader logic for mimetype check

Fixes the logic of the mimetype check before trying to load with the
given mimetype.
This commit is contained in:
faxe1008 2025-01-08 11:02:05 +01:00 committed by Hermet Park
parent 0c09580cd4
commit 912752906c

View file

@ -358,7 +358,7 @@ LoadModule* LoaderMgr::loader(const char* data, uint32_t size, const char* mimeT
} }
//Try with the given MimeType //Try with the given MimeType
if (!mimeType) { if (mimeType) {
if (auto loader = _findByType(mimeType)) { if (auto loader = _findByType(mimeType)) {
if (loader->open(data, size, rpath, copy)) { if (loader->open(data, size, rpath, copy)) {
if (allowCache) { if (allowCache) {