From 2d43d2e2e5ceb1664453ca714bc793b2439bd7dc Mon Sep 17 00:00:00 2001 From: Brad Weinberger <1484541+BradleyMarie@users.noreply.github.com> Date: Mon, 19 Feb 2024 23:49:49 -0800 Subject: [PATCH] Remove const from outbuf --- tinyexr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tinyexr.h b/tinyexr.h index d34ab63..d400157 100644 --- a/tinyexr.h +++ b/tinyexr.h @@ -386,7 +386,7 @@ extern int IsEXRFromMemory(const unsigned char *memory, size_t size); // error extern int SaveEXRToMemory(const float *data, const int width, const int height, const int components, const int save_as_fp16, - const unsigned char **buffer, const char **err); + unsigned char **buffer, const char **err); // @deprecated { Not recommended, but handy to use. } // Saves single-frame OpenEXR image to a buffer. Assume EXR image contains RGB(A) channels. @@ -9008,7 +9008,7 @@ int LoadEXRMultipartImageFromFile(EXRImage *exr_images, } int SaveEXRToMemory(const float *data, int width, int height, int components, - const int save_as_fp16, const unsigned char **outbuf, const char **err) { + const int save_as_fp16, unsigned char **outbuf, const char **err) { if ((components == 1) || components == 3 || components == 4) { // OK