mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-15 16:41:22 +00:00
* gl_model.c (Mod_LoadFaces): Do not call GL_SubdivideSurface() in dedicated
servers, otherwise we segfault in SubdividePolygon() at the BoundPoly() call. This is a workaround, the actual problem is yet to be looked into. git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@185 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
6b05365aa3
commit
e05ac1be84
1 changed files with 6 additions and 1 deletions
|
@ -1035,7 +1035,12 @@ void Mod_LoadFaces (lump_t *l)
|
||||||
{
|
{
|
||||||
out->flags |= (SURF_DRAWTURB | SURF_DRAWTILED);
|
out->flags |= (SURF_DRAWTURB | SURF_DRAWTILED);
|
||||||
Mod_PolyForUnlitSurface (out);
|
Mod_PolyForUnlitSurface (out);
|
||||||
GL_SubdivideSurface (out);
|
/* FIXME:
|
||||||
|
With dedicated servers, we segfault in SubdividePolygon() at
|
||||||
|
the BoundPoly() call. The following dedicated server check is
|
||||||
|
a workaround, the actual problem is yet to be looked into. */
|
||||||
|
if (cls.state != ca_dedicated)
|
||||||
|
GL_SubdivideSurface (out);
|
||||||
}
|
}
|
||||||
else if (out->texinfo->flags & TEX_MISSING) // texture is missing from bsp
|
else if (out->texinfo->flags & TEX_MISSING) // texture is missing from bsp
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue