]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_sky.c
made darkplaces compile successfully with g++ to test for errors C doesn't care about...
[xonotic/darkplaces.git] / r_sky.c
diff --git a/r_sky.c b/r_sky.c
index d6bea0166b07cb9d80c29b610537e04c040f1253..dfb3af5d21227dab0c841032c60f1b094c98d3c9 100644 (file)
--- 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);