]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_textures.c
fixed a reference to sv.models in client code (should have been
[xonotic/darkplaces.git] / gl_textures.c
index c3e200fb72e15f2b43f661e4b0dac446efe430ac..92a7117116a2f89916625f803c14b49718b6bd69 100644 (file)
@@ -69,7 +69,7 @@ typedef struct gltexture_s
        // pointer to next texture in texturepool chain
        struct gltexture_s *chain;
        // name of the texture (this might be removed someday), no duplicates
-       char identifier[32];
+       char identifier[MAX_QPATH + 32];
        // original data size in *inputtexels
        int inputwidth, inputheight, inputdepth;
        // copy of the original texture(s) supplied to the upload function, for
@@ -856,7 +856,7 @@ static rtexture_t *R_SetupTexture(rtexturepool_t *rtexturepool, const char *iden
        size = width * height * depth * sides * texinfo->inputbytesperpixel;
        if (size < 1)
        {
-               Con_Printf ("R_LoadTexture: bogus texture size (%dx%dx%dx%dbppx%dsides = %d bytes)\n", width, height, depth, texinfo->inputbytesperpixel * 8, sides);
+               Con_Printf ("R_LoadTexture: bogus texture size (%dx%dx%dx%dbppx%dsides = %d bytes)\n", width, height, depth, texinfo->inputbytesperpixel * 8, sides, size);
                return NULL;
        }