From 143d3d85de53ad658dfeb8f730a77b9512f2fa6d Mon Sep 17 00:00:00 2001 From: mintsuki Date: Wed, 15 Feb 2023 11:53:07 +0100 Subject: [PATCH] stb/image: Comment out problematic functions --- common/stb_image.patch | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/common/stb_image.patch b/common/stb_image.patch index 35b0d455..8e44f300 100644 --- a/common/stb_image.patch +++ b/common/stb_image.patch @@ -1,5 +1,5 @@ ---- common/stb/stb_image.h 2023-02-15 10:53:10.719623884 +0100 -+++ common/stb/stb_image.h 2023-02-15 10:54:43.312960410 +0100 +--- common/stb/stb_image.h 2023-02-15 11:52:01.743616847 +0100 ++++ common/stb/stb_image.h 2023-02-15 11:51:52.686949866 +0100 @@ -127,6 +127,37 @@ #ifndef STBI_INCLUDE_STB_IMAGE_H #define STBI_INCLUDE_STB_IMAGE_H @@ -60,3 +60,16 @@ #if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) #include // ldexp, pow +@@ -1574,10 +1605,12 @@ + STBIDEF void stbi_ldr_to_hdr_scale(float scale) { stbi__l2h_scale = scale; } + #endif + ++/* + static float stbi__h2l_gamma_i=1.0f/2.2f, stbi__h2l_scale_i=1.0f; + + STBIDEF void stbi_hdr_to_ldr_gamma(float gamma) { stbi__h2l_gamma_i = 1/gamma; } + STBIDEF void stbi_hdr_to_ldr_scale(float scale) { stbi__h2l_scale_i = 1/scale; } ++*/ + + + //////////////////////////////////////////////////////////////////////////////