stb/image: Comment out problematic functions

This commit is contained in:
mintsuki 2023-02-15 11:53:07 +01:00
parent c2e70b6f2e
commit a80eba16a8
1 changed files with 15 additions and 2 deletions

View File

@ -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 <math.h> // 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; }
+*/
//////////////////////////////////////////////////////////////////////////////