]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fixed dedicated erroring on startup
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 18 Feb 2002 04:57:58 +0000 (04:57 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 18 Feb 2002 04:57:58 +0000 (04:57 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1533 d7cf8633-e32d-0410-b094-e92efae38249

gl_textures.c

index 03da518289523bb67f696147485b7fa810f31fea..50390ce9f99574d736ba9067bd465c172860db22 100644 (file)
@@ -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;