From: Rudolf Polzer Date: Wed, 3 Jan 2024 20:06:16 +0000 (-0800) Subject: Handle rsurface.texture == NULL here (not sure if it can happen). X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=aaf4625d4da84828ce7bde206e3b5b60de77f9e5;p=xonotic%2Fdarkplaces.git Handle rsurface.texture == NULL here (not sure if it can happen). --- 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); }