From 76483e3e6c4b1339269cfe10663b14b70faabcdb Mon Sep 17 00:00:00 2001 From: Andrei Drexler Date: Wed, 20 Jul 2011 21:58:16 +0000 Subject: [PATCH] Fixed infinite loop --- reaction/code/renderer/tr_image.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/reaction/code/renderer/tr_image.c b/reaction/code/renderer/tr_image.c index 4ed337ed..58c15c75 100644 --- a/reaction/code/renderer/tr_image.c +++ b/reaction/code/renderer/tr_image.c @@ -977,7 +977,6 @@ image_t *R_CreateImage2( const char *name, const byte *pic, int width, int heigh qboolean mipmap, qboolean allowPicmip, int glWrapClampMode, qboolean cube ) { image_t *image; qboolean isLightmap = qfalse; - long hash; if (strlen(name) >= MAX_QPATH ) { ri.Error (ERR_DROP, "R_CreateImage: \"%s\" is too long", name); @@ -1046,10 +1045,6 @@ image_t *R_CreateImage2( const char *name, const byte *pic, int width, int heigh GL_SelectTexture( 0 ); - hash = generateHashValue(name); - image->next = hashTable[hash]; - hashTable[hash] = image; - return image; }