X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=r_sky.c;h=dfb3af5d21227dab0c841032c60f1b094c98d3c9;hp=d6bea0166b07cb9d80c29b610537e04c040f1253;hb=aa33d8f8642530f7f266d6cde1422f95aa74b2be;hpb=60957c2f74fc42d2ab59e5973a469b2e9ee39824 diff --git a/r_sky.c b/r_sky.c index d6bea016..dfb3af5d 100644 --- a/r_sky.c +++ b/r_sky.c @@ -113,7 +113,7 @@ int R_LoadSkyBox(void) } } } - temp = Mem_Alloc(tempmempool, image_width*image_height*4); + temp = (qbyte *)Mem_Alloc(tempmempool, image_width*image_height*4); Image_CopyMux (temp, image_rgba, image_width, image_height, suffix[j][i].flipx, suffix[j][i].flipy, suffix[j][i].flipdiagonal, 4, 4, indices); skyboxside[i] = R_LoadTexture2D(skytexturepool, va("skyboxside%d", i), image_width, image_height, temp, TEXTYPE_RGBA, TEXF_CLAMP | TEXF_PRECACHE, NULL); Mem_Free(image_rgba);