Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/basis_universal/patches/0002-external-tinyexr.patch
9904 views
1
diff --git a/thirdparty/basis_universal/encoder/basisu_enc.cpp b/thirdparty/basis_universal/encoder/basisu_enc.cpp
2
index 1cc982b134..ab9a458744 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
@@ -3420,7 +3420,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 : "?");
24
25