]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rmain.c
Fix crash in q3bsp loading on submodels where it was adding the submodelsurfaces_star...
[xonotic/darkplaces.git] / gl_rmain.c
index 747c5f0ed0889c3aa286d95f4515f0763e9190b8..7764d9044af9c87a4afcd812b8dc6379f3907b2f 100644 (file)
@@ -10065,7 +10065,7 @@ void R_DrawModelSurfaces(entity_render_t *ent, qbool skysurfaces, qbool writedep
        }
        else if (ui)
        {
-               // for ui we have to preserve the order of surfaces (not using sortedmodelsurfaces)
+               // for ui we have to preserve the order of surfaces (not using modelsurfaces_sorted)
                for (i = model->submodelsurfaces_start; i < model->submodelsurfaces_end; i++)
                        r_surfacelist[numsurfacelist++] = surfaces + i;
        }