]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Add support for textures named "*white" and "$whiteimage" in the embedded image loade...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 25 May 2020 07:17:51 +0000 (07:17 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 25 May 2020 07:17:51 +0000 (07:17 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12568 d7cf8633-e32d-0410-b094-e92efae38249

image.c

diff --git a/image.c b/image.c
index dec67c3b3609385cd01edcc3fb34fc87fcca78ec..93d7d89b463815cca1be8966a6c6f170da827c1a 100644 (file)
--- a/image.c
+++ b/image.c
@@ -2094,7 +2094,7 @@ unsigned char *Image_GetEmbeddedPicBGRA(const char *name)
                        return data;
                }
        }
-       if (!strcmp(name, "white") || !strcmp(name, "#white"))
+       if (!strcmp(name, "white") || !strcmp(name, "#white") || !strcmp(name, "*white") || !strcmp(name, "$whiteimage"))
                return Image_GenerateWhite();
        if (!strcmp(name, "gfx/conchars"))
                return Image_GenerateConChars();