From 68faa57c6d6fbfb551396a772f3efad083cb36fc Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Mon, 18 Mar 2019 07:22:54 +0000 Subject: [PATCH] CalcSurfaceExtents: adjust bogus initial "max" texture coord to match the magnitude of the "min" one. It was possible to erroneously cause a "bad surface extents" error with face around +/- 100K units from the origin, since "max" was initalized to -99999. TODO: These should probably both be changed to FLT_MAX/-FLT_MAX. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1608 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/gl_model.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Quake/gl_model.c b/Quake/gl_model.c index 443bb475..d41f72f7 100644 --- a/Quake/gl_model.c +++ b/Quake/gl_model.c @@ -998,7 +998,7 @@ void CalcSurfaceExtents (msurface_t *s) int bmins[2], bmaxs[2]; mins[0] = mins[1] = 999999; - maxs[0] = maxs[1] = -99999; + maxs[0] = maxs[1] = -999999; // FIXME: change these two to FLT_MAX/-FLT_MAX tex = s->texinfo;