From aaf4625d4da84828ce7bde206e3b5b60de77f9e5 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 3 Jan 2024 12:06:16 -0800 Subject: [PATCH] Handle rsurface.texture == NULL here (not sure if it can happen). --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rmain.c b/gl_rmain.c index 5f7f1c10..aae45056 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -8838,7 +8838,7 @@ static void R_DrawTextureSurfaceList_ShowSurfaces(int texturenumsurfaces, const { Vector4Set(c, 1, 0, 1, 1); } - if (t->pantstexture || t->shirttexture) + if (t && (t->pantstexture || t->shirttexture)) { VectorMAM(0.7, t->render_colormap_pants, 0.3, t->render_colormap_shirt, c); } -- 2.39.2