From 4eb520d872749eb4fac7e0af76d8c131d043e5c0 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Sun, 9 Aug 2020 18:38:05 +0000 Subject: [PATCH] model_brush: Demote a Host_Error to Con_Printf warn for irregular lightmap sizes This is probably not the proper solution, but certain maps that ioquake3 can load just fine, will at least load in DP now. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12889 d7cf8633-e32d-0410-b094-e92efae38249 --- model_brush.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/model_brush.c b/model_brush.c index 25328e23..9c99ef4c 100644 --- a/model_brush.c +++ b/model_brush.c @@ -5594,10 +5594,7 @@ static void Mod_Q3BSP_LoadLightmaps(lump_t *l, lump_t *faceslump) // using EXTERNAL lightmaps instead if(image_width != (int) CeilPowerOf2(image_width) || image_width != image_height) - { - Mem_Free(inpixels[0]); - Host_Error("Mod_Q3BSP_LoadLightmaps: invalid external lightmap size in %s",loadmodel->name); - } + Con_Printf("Mod_Q3BSP_LoadLightmaps: irregularly sized external lightmap in %s",loadmodel->name); size = image_width; bytesperpixel = 4; -- 2.39.2