Skip to content

Commit

Permalink
Merge pull request #202 from BradleyMarie/patch-1
Browse files Browse the repository at this point in the history
Remove const from outbuf
  • Loading branch information
syoyo authored Feb 20, 2024
2 parents 79e5df5 + 2d43d2e commit 6c8742c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tinyexr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6c8742c

Please sign in to comment.