diff --git a/Quake/gl_model.c b/Quake/gl_model.c index 30c69881..1f9d7fa6 100644 --- a/Quake/gl_model.c +++ b/Quake/gl_model.c @@ -496,6 +496,12 @@ static void Mod_LoadTextures (lump_t *l) for (j=0 ; joffsets[j] = LittleLong (mt->offsets[j]); + if (mt->width == 0 || mt->height == 0) + { + Con_Warning ("Zero sized texture %s in %s!\n", mt->name, loadmodel->name); + continue; + } + if ( (mt->width & 15) || (mt->height & 15) ) { if (loadmodel->bspversion != BSPVERSION_QUAKE64)