X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=image.c;h=7ef2326b0c5af4ea41f57a7cba31f5588920da49;hb=c77cc6c6dfd662e2baf695cee6d8e906b0764ea5;hp=8b150c40c7da6961f9c0019112d5d5cb55b9a2a5;hpb=f17bd2cd61289ccb751faeea3d246b2890b1b11d;p=xonotic%2Fdarkplaces.git diff --git a/image.c b/image.c index 8b150c40..7ef2326b 100644 --- a/image.c +++ b/image.c @@ -931,6 +931,7 @@ void Image_WriteTGARGBA (const char *filename, int width, int height, const qbyt buffer[14] = (height >> 0) & 0xFF; buffer[15] = (height >> 8) & 0xFF; buffer[16] = 32; // pixel size + buffer[17] = 8; // transparent flag? (seems to be needed by gimp) // swap rgba to bgra and flip upside down out = buffer + 18; @@ -1307,7 +1308,7 @@ void Image_Resample (const void *indata, int inwidth, int inheight, int indepth, Mem_Free(resamplerow1); resamplerowsize = outwidth*4; if (!resamplemempool) - resamplemempool = Mem_AllocPool("Image Scaling Buffer"); + resamplemempool = Mem_AllocPool("Image Scaling Buffer", 0, NULL); resamplerow1 = Mem_Alloc(resamplemempool, resamplerowsize*2); resamplerow2 = resamplerow1 + resamplerowsize; }