From 96b8df574ab1a9c2f08f6d8896e0e20635caa84d Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Mon, 18 Feb 2002 04:57:58 +0000 Subject: [PATCH] fixed dedicated erroring on startup git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1533 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_textures.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gl_textures.c b/gl_textures.c index 03da5182..50390ce9 100644 --- a/gl_textures.c +++ b/gl_textures.c @@ -263,6 +263,8 @@ static gltexture_t *R_FindTexture (gltexturepool_t *pool, char *identifier) rtexturepool_t *R_AllocTexturePool(void) { gltexturepool_t *pool; + if (texturemempool == NULL) + return NULL; pool = Mem_Alloc(texturemempool, sizeof(gltexturepool_t)); if (pool == NULL) return NULL; -- 2.39.2