From: havoc Date: Mon, 25 May 2020 07:17:51 +0000 (+0000) Subject: Add support for textures named "*white" and "$whiteimage" in the embedded image loade... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cc0e49ff09037fcfb8ae11f5eff119f84d413ab6;p=xonotic%2Fdarkplaces.git Add support for textures named "*white" and "$whiteimage" in the embedded image loader, for better Q3 shader compatibility. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12568 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/image.c b/image.c index dec67c3b..93d7d89b 100644 --- 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();