From a1db7e86efb8a56853741d8a84d034a4f423e4fa Mon Sep 17 00:00:00 2001 From: Joseph Carter Date: Sun, 14 May 2000 00:11:12 +0000 Subject: [PATCH] Texture cache mismatch fix (I think, since I'm working blind here..) --- source/gl_draw.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source/gl_draw.c b/source/gl_draw.c index ef8f10b..13b4843 100644 --- a/source/gl_draw.c +++ b/source/gl_draw.c @@ -1337,7 +1337,15 @@ 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"); + { + glt->width = width; + glt->height = height; + glt->mipmap = mipmap; + + GL_Bind (glt->texnum); + + GL_Upload8 (data, width, height, mipmap, alpha); + } return gltextures[i].texnum; } }