diff --git a/common/gl_draw.c b/common/gl_draw.c index 88d4c7f..55a33bf 100644 --- a/common/gl_draw.c +++ b/common/gl_draw.c @@ -1428,9 +1428,17 @@ int GL_LoadTexture (char *identifier, int width, int height, byte *data, qboolea { if (!strcmp (identifier, glt->identifier)) { - if (width != glt->width - || height != glt->height) - Sys_Error ("GL_LoadTexture: cache mismatch"); +// if (width != glt->width +// || height != glt->height) +// Sys_Error ("GL_LoadTexture: cache mismatch"); + glt->width = width; + glt->height = height; + glt->mipmap = mipmap; + + GL_Bind (glt->texnum); + + GL_Upload8 (data, width, height, mipmap, alpha); + return gltextures[i].texnum; } }