1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From: =?utf-8?q?Timo_R=C3=B6hling?= <timo@gaussglocke.de>
Date: Mon, 16 Nov 2020 19:13:34 +0100
Subject: Use zlib instead of embedded miniz
Forwarded: not-needed
---
tinyexr.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tinyexr.h b/tinyexr.h
index c684c10..00f338d 100644
--- a/tinyexr.h
+++ b/tinyexr.h
@@ -106,7 +106,7 @@ extern "C" {
// Use miniz or not to decode ZIP format pixel. Linking with zlib
// required if this flag is 0 and TINYEXR_USE_STB_ZLIB is 0.
#ifndef TINYEXR_USE_MINIZ
-#define TINYEXR_USE_MINIZ (1)
+#define TINYEXR_USE_MINIZ (0)
#endif
// Use the ZIP implementation of stb_image.h and stb_image_write.h.
@@ -702,7 +702,7 @@ extern int LoadEXRFromMemory(float **out_rgba, int *width, int *height,
#else
// Issue #46. Please include your own zlib-compatible API header before
// including `tinyexr.h`
-//#include "zlib.h"
+#include <zlib.h>
#endif
#if defined(TINYEXR_USE_NANOZLIB) && (TINYEXR_USE_NANOZLIB==1)
|