From 435a020cb88914233ae8ebdd93c80c50a56581d2 Mon Sep 17 00:00:00 2001 From: Daniel Svensson Date: Mon, 18 Dec 2023 19:26:55 +0100 Subject: [PATCH] Don't purge tracker icons. (#233) --- engine/gl/gl_font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/gl/gl_font.c b/engine/gl/gl_font.c index 5bfe78096..3964a3853 100644 --- a/engine/gl/gl_font.c +++ b/engine/gl/gl_font.c @@ -426,7 +426,7 @@ static image_t *Font_GetTrackerImage(unsigned int imid) { if (!*trackerimages[imid].name) return NULL; - trackerimages[imid].image = Image_GetTexture(trackerimages[imid].name, NULL, IF_PREMULTIPLYALPHA|IF_UIPIC, NULL, NULL, 0, 0, TF_INVALID); + trackerimages[imid].image = Image_GetTexture(trackerimages[imid].name, NULL, IF_PREMULTIPLYALPHA|IF_UIPIC|IF_NOPURGE, NULL, NULL, 0, 0, TF_INVALID); } if (!trackerimages[imid].image) return NULL; @@ -443,7 +443,7 @@ qboolean Font_TrackerValid(unsigned int imid) { if (!*trackerimages[imid].name) return false; - trackerimages[imid].image = Image_GetTexture(trackerimages[imid].name, NULL, IF_PREMULTIPLYALPHA|IF_UIPIC, NULL, NULL, 0, 0, TF_INVALID); + trackerimages[imid].image = Image_GetTexture(trackerimages[imid].name, NULL, IF_PREMULTIPLYALPHA|IF_UIPIC|IF_NOPURGE, NULL, NULL, 0, 0, TF_INVALID); } if (!trackerimages[imid].image) return false;