Skip to content
0.2.0-dev Download ZIP
23 lines ·897 B Raw
1diff --git a/thirdparty/basis_universal/encoder/basisu_enc.cpp b/thirdparty/basis_universal/encoder/basisu_enc.cpp
2index 2c314740cd..cee9c77ca0 100644
3--- a/thirdparty/basis_universal/encoder/basisu_enc.cpp
4+++ b/thirdparty/basis_universal/encoder/basisu_enc.cpp
5@@ -29,7 +29,7 @@
6 #ifndef TINYEXR_USE_ZFP
7 #define TINYEXR_USE_ZFP (1)
8 #endif
9-#include "3rdparty/tinyexr.h"
10+#include <tinyexr.h>
11
12 #ifndef MINIZ_HEADER_FILE_ONLY
13 #define MINIZ_HEADER_FILE_ONLY
14@@ -3433,7 +3433,8 @@ namespace basisu
15 float* out_rgba = nullptr;
16 const char* err = nullptr;
17
18- int status = LoadEXRWithLayer(&out_rgba, &width, &height, pFilename, nullptr, &err, &n_chans);
19+ int status = LoadEXRWithLayer(&out_rgba, &width, &height, pFilename, nullptr, &err);
20+ n_chans = 4;
21 if (status != 0)
22 {
23 error_printf("Failed loading .EXR image \"%s\"! (TinyEXR error: %s)\n", pFilename, err ? err : "?");