Index: darkplaces/gl_textures.c
diff -u darkplaces/gl_textures.c:1.63 darkplaces/gl_textures.c:1.64
--- darkplaces/gl_textures.c:1.63	Fri Feb  6 00:17:08 2004
+++ darkplaces/gl_textures.c	Sun Feb 29 23:29:38 2004
@@ -786,7 +786,7 @@
 			for (i = 0;i < 6;i++)
 			{
 				prevbuffer = texturebuffer;
-				texturebuffer += width * height * depth * glt->textype->inputbytesperpixel;
+				texturebuffer += glt->width * glt->height * glt->depth * glt->textype->inputbytesperpixel;
 				if (glt->width != width || glt->height != height || glt->depth != depth)
 				{
 					Image_Resample(prevbuffer, glt->width, glt->height, glt->depth, resizebuffer, width, height, depth, glt->image->bytesperpixel, r_lerpimages.integer);
Index: darkplaces/todo
diff -u darkplaces/todo:1.96 darkplaces/todo:1.97
--- darkplaces/todo:1.96	Sun Feb 29 23:20:33 2004
+++ darkplaces/todo	Sun Feb 29 23:29:38 2004
@@ -40,7 +40,7 @@
 d darkplaces: cleaned up rtlight handling, merging most code between world rtlights and dlights
 d darkplaces: safety checked lightmap access in Mod_Q1BSP_RecursiveLightPoint as one map Sajt uses was crashing (Sajt)
 -n darkplaces: upgrade network protocol to send precise angles, and make EF_LOWPRECISION downgrade both origin and angles (-Urre, -Wazat for Battlemech, FrikaC, -mashakos, RenegadeC, Sajt)
-0 darkplaces: figure out why cubemap upload scaling crashes (Urre)
+-n darkplaces: fix cubemap upload scaling crashes (Urre)
 0 darkplaces: make screenshots save to screenshots/fniggium%04i.tga in GAME_FNIGGIUM (Sajt)
 0 darkplaces: make screenshots save to screenshots directory (Sajt)
 2 darkplaces: make corona occlusion testing use GL_ARB_occlusion_query instead of a CL_TraceLine (Riot)