You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
tinyexr: Update to upstream 1.0.9
This commit is contained in:
5
thirdparty/tinyexr/tinyexr.h
vendored
5
thirdparty/tinyexr/tinyexr.h
vendored
@@ -4923,7 +4923,7 @@ static int DecodeTiledLevel(EXRImage* exr_image, const EXRHeader* exr_header,
|
||||
}
|
||||
#endif
|
||||
exr_image->tiles = static_cast<EXRTile*>(
|
||||
calloc(sizeof(EXRTile), static_cast<size_t>(num_tiles)));
|
||||
calloc(static_cast<size_t>(num_tiles), sizeof(EXRTile)));
|
||||
|
||||
#if TINYEXR_HAS_CXX11 && (TINYEXR_USE_THREAD > 0)
|
||||
std::vector<std::thread> workers;
|
||||
@@ -9287,9 +9287,6 @@ int SaveEXR(const float *data, int width, int height, int components,
|
||||
}
|
||||
|
||||
int ret = SaveEXRImageToFile(&image, &header, outfilename, err);
|
||||
if (ret != TINYEXR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
free(header.channels);
|
||||
free(header.pixel_types);
|
||||
|
||||
Reference in New Issue
Block a user