From 5f4af066bf1622a7b45b148be751f0b48cc52e3a Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Tue, 22 Jan 2002 05:34:21 +0000 Subject: [PATCH] fake answers for R_GetFragmentLocation when running dedicated git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1383 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_textures.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gl_textures.c b/gl_textures.c index fb0c0ae5..f62a0cb0 100644 --- a/gl_textures.c +++ b/gl_textures.c @@ -1456,6 +1456,25 @@ void R_GetFragmentLocation(rtexture_t *rt, int *x, int *y, float *fx1, float *fy { gltexture_t *glt; float iwidth, iheight; + if (cls.state == ca_dedicated) + { + if (x) + *x = 0; + if (y) + *y = 0; + if (fx1 || fy1 || fx2 || fy2) + { + if (fx1) + *fx1 = 0; + if (fy1) + *fy1 = 0; + if (fx2) + *fx2 = 1; + if (fy2) + *fy2 = 1; + } + return; + } if (!rt) Host_Error("R_GetFragmentLocation: no texture supplied\n"); glt = (gltexture_t *)rt; -- 2.39.2