]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_draw.c
fixed menu player colormapping
[xonotic/darkplaces.git] / gl_draw.c
index a798805d0435fc907bb92b5de5afba2fd157adc9..d92928858ad31f794b427950c8cf2702978267ab 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -272,7 +272,7 @@ cachepic_t *Draw_NewPic(char *picname, int width, int height, int alpha, qbyte *
 
        if (pic)
        {
-               if (pic->tex && R_TextureWidth(pic->tex) == width && R_TextureHeight(pic->tex) == height && (R_TextureHasAlpha(pic->tex) != 0) == (alpha != 0))
+               if (pic->tex && pic->width == width && pic->height == height)
                {
                        R_UpdateTexture(pic->tex, pixels);
                        return pic;