From 22dd50f25653944863898601ee66bdef121fd51a Mon Sep 17 00:00:00 2001 From: Jonas Karlsson Date: Tue, 20 Oct 2015 22:03:50 +0200 Subject: [PATCH] Fix documentation error --- stb_image_write.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_image_write.h b/stb_image_write.h index 38d3835..6014164 100644 --- a/stb_image_write.h +++ b/stb_image_write.h @@ -34,7 +34,7 @@ USAGE: int stbi_write_png(char const *filename, int w, int h, int comp, const void *data, int stride_in_bytes); int stbi_write_bmp(char const *filename, int w, int h, int comp, const void *data); int stbi_write_tga(char const *filename, int w, int h, int comp, const void *data); - int stbi_write_hdr(char const *filename, int w, int h, int comp, const void *data); + int stbi_write_hdr(char const *filename, int w, int h, int comp, const float *data); There are also four equivalent functions that use an arbitrary write function. You are expected to open/close your file-equivalent before and after calling these: