From bee674d55fd008e90e33646c0e26ee1943f1ec30 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Sat, 16 May 2020 19:55:55 +0000 Subject: [PATCH] In Q3 shader, generate white texture for *white too. This adds an extra strcmp to check for #white, and by extension, *white. Patch contributed by Mario from Xonotic team. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12528 d7cf8633-e32d-0410-b094-e92efae38249 --- image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.c b/image.c index 2c8fb332..dec67c3b 100644 --- a/image.c +++ b/image.c @@ -2094,7 +2094,7 @@ unsigned char *Image_GetEmbeddedPicBGRA(const char *name) return data; } } - if (!strcmp(name, "white")) + if (!strcmp(name, "white") || !strcmp(name, "#white")) return Image_GenerateWhite(); if (!strcmp(name, "gfx/conchars")) return Image_GenerateConChars(); -- 2.39.2