]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
model_brush: Demote a Host_Error to Con_Printf warn for irregular lightmap sizes
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 9 Aug 2020 18:38:05 +0000 (18:38 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 9 Aug 2020 18:38:05 +0000 (18:38 +0000)
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

index 25328e23bddb957e9d6018b37b8d03a0447786cc..9c99ef4c824e513f46fa6c1c23bc635174915c19 100644 (file)
@@ -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;