diff --git a/demo/extracttexture.c b/demo/extracttexture.c index 268f58f..f686ff7 100644 --- a/demo/extracttexture.c +++ b/demo/extracttexture.c @@ -23,7 +23,7 @@ void extracttextures(const char *filedata, DEVIL1TEX.gettextures(t, i, filedata, filesize); for (j = 0; j < d -> texNumber; j++) { sprintf(fmt, "%s_%d.dds", filename, id); - write(fmt, t[j].data, d -> textureSize); + write(fmt, (char*)t[j].data, d -> textureSize); id++; } free(t);