]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Handle rsurface.texture == NULL here (not sure if it can happen).
authorRudolf Polzer <divVerent@gmail.com>
Wed, 3 Jan 2024 20:06:16 +0000 (12:06 -0800)
committerRudolf Polzer <divVerent@gmail.com>
Wed, 3 Jan 2024 20:06:16 +0000 (12:06 -0800)
gl_rmain.c

index 5f7f1c10c3ab2352c70d59cd14b7f86675f8a066..aae45056151281c32ad1ae9c38b5d74c4e613e08 100644 (file)
@@ -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);
                        }