summaryrefslogtreecommitdiffstats
path: root/thirdparty/basis_universal/patches/external-jpgd.patch
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/basis_universal/patches/external-jpgd.patch')
-rw-r--r--thirdparty/basis_universal/patches/external-jpgd.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/thirdparty/basis_universal/patches/external-jpgd.patch b/thirdparty/basis_universal/patches/external-jpgd.patch
new file mode 100644
index 0000000000..7a805d00cb
--- /dev/null
+++ b/thirdparty/basis_universal/patches/external-jpgd.patch
@@ -0,0 +1,13 @@
+diff --git a/thirdparty/basis_universal/encoder/basisu_enc.cpp b/thirdparty/basis_universal/encoder/basisu_enc.cpp
+index c431ceaf12..e87dd636a2 100644
+--- a/thirdparty/basis_universal/encoder/basisu_enc.cpp
++++ b/thirdparty/basis_universal/encoder/basisu_enc.cpp
+@@ -409,7 +409,7 @@ namespace basisu
+ bool load_jpg(const char *pFilename, image& img)
+ {
+ int width = 0, height = 0, actual_comps = 0;
+- uint8_t *pImage_data = jpgd::decompress_jpeg_image_from_file(pFilename, &width, &height, &actual_comps, 4, jpgd::jpeg_decoder::cFlagLinearChromaFiltering);
++ uint8_t *pImage_data = jpgd::decompress_jpeg_image_from_file(pFilename, &width, &height, &actual_comps, 4, jpgd::jpeg_decoder::cFlagBoxChromaFiltering);
+ if (!pImage_data)
+ return false;
+