]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
corrected call to Image_HasAlpha to be Image_CheckAlpha
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 May 2003 11:34:56 +0000 (11:34 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 May 2003 11:34:56 +0000 (11:34 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3000 d7cf8633-e32d-0410-b094-e92efae38249

image.c

diff --git a/image.c b/image.c
index 8a46f44f52bc46267a162db89068fe97538b0aba..23eb76b4652b15ac3b0c6da96b017c70cad1c50e 100644 (file)
--- a/image.c
+++ b/image.c
@@ -1428,7 +1428,7 @@ int image_loadskin(imageskin_t *s, char *name)
        s->basepixels_height = image_height;
 
        bumppixels = NULL;bumppixels_width = 0;bumppixels_height = 0;
-       if (Image_HasAlpha(s->basepixels, s->basepixels_width * s->basepixels_height, true))
+       if (Image_CheckAlpha(s->basepixels, s->basepixels_width * s->basepixels_height, true))
        {
                s->maskpixels = Mem_Alloc(loadmodel->mempool, s->basepixels_width * s->basepixels_height * 4);
                s->maskpixels_width = s->basepixels_width;