diff --git a/src/image/formats/Jpeg.cpp b/src/image/formats/Jpeg.cpp index 6ba39bc..0b5b714 100644 --- a/src/image/formats/Jpeg.cpp +++ b/src/image/formats/Jpeg.cpp @@ -9,9 +9,6 @@ std::expected JPEG::createSurfaceFromJPEG(const s if (!std::filesystem::exists(path)) return std::unexpected("loading jpeg: file doesn't exist"); - if (__BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__) - return std::unexpected("loading jpeg: cannot load on big endian"); - std::ifstream file(path, std::ios::binary | std::ios::ate); file.exceptions(std::ifstream::failbit | std::ifstream::badbit | std::ifstream::eofbit); std::vector bytes(file.tellg());