stb/image: Comment out problematic functions
This commit is contained in:
parent
1099993b14
commit
143d3d85de
@ -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 11:52:01.743616847 +0100
|
||||||
+++ common/stb/stb_image.h 2023-02-15 10:54:43.312960410 +0100
|
+++ common/stb/stb_image.h 2023-02-15 11:51:52.686949866 +0100
|
||||||
@@ -127,6 +127,37 @@
|
@@ -127,6 +127,37 @@
|
||||||
#ifndef STBI_INCLUDE_STB_IMAGE_H
|
#ifndef STBI_INCLUDE_STB_IMAGE_H
|
||||||
#define STBI_INCLUDE_STB_IMAGE_H
|
#define STBI_INCLUDE_STB_IMAGE_H
|
||||||
@ -60,3 +60,16 @@
|
|||||||
|
|
||||||
#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR)
|
#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR)
|
||||||
#include <math.h> // ldexp, pow
|
#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; }
|
||||||
|
+*/
|
||||||
|
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user