From 1fb8ab1487703e20dacef8c5ec4948e591b5b515 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 6 Oct 2009 00:15:55 +0000 Subject: [PATCH] Trying to fix a bug with a map bigfoot gave me. Blame him! Not me! git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3377 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_model.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engine/gl/gl_model.c b/engine/gl/gl_model.c index e8a5c81e4..ce4a60fb1 100644 --- a/engine/gl/gl_model.c +++ b/engine/gl/gl_model.c @@ -944,7 +944,14 @@ TRACE(("dbg: GLMod_LoadTextures: inittexturedescs\n")); { m->dataofs[i] = LittleLong(m->dataofs[i]); if (m->dataofs[i] == -1) //e1m2, this happens + { + tx = Hunk_AllocName (sizeof(texture_t), loadname ); + memcpy(tx, r_notexture_mip, sizeof(texture_t)); + tx->parttype = -1; + sprintf(tx->name, "unnamed%i", i); + loadmodel->textures[i] = tx; continue; + } mt = (miptex_t *)((qbyte *)m + m->dataofs[i]); TRACE(("dbg: GLMod_LoadTextures: texture %s\n", loadname));