git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3785 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2011-04-30 17:58:24 +00:00
parent 93aba48cdc
commit 132ef961bc
2 changed files with 7 additions and 9 deletions

View file

@ -47,7 +47,7 @@ void Sys_RecentServer(char *command, char *target, char *title, char *desc)
{
}
static void Sys_Shutdown()
void Sys_Shutdown()
{
#if I_AM_BIGFOOT
if(DynLoadBase)

View file

@ -89,7 +89,7 @@ void R_DrawSkyChain (batch_t *batch)
return;
}
#ifdef GLQUAKE
if (*r_fastsky.string && qrenderer == QR_OPENGL)
if (*r_fastsky.string && qrenderer == QR_OPENGL && TEXVALID(batch->shader->defaulttextures.base))
{
R_CalcSkyChainBounds(batch);
@ -565,13 +565,12 @@ static void MakeSkyGridVec2 (float s, float t, int axis, vec3_t v)
{
vec3_t b;
int j, k;
float skydist = gl_skyboxdist.value;
extern cvar_t gl_maxdist;
if (!skydist)
{
skydist = gl_maxdist.value * 0.577;
}
float skydist = gl_skyboxdist.value;
if (skydist<1)
skydist=gl_maxdist.value * 0.577;
if (skydist<1)
skydist = 10000000;
b[0] = s*skydist;
b[1] = t*skydist;
@ -635,7 +634,6 @@ static void GL_DrawSkyGrid (texture_t *tex)
int i;
float time = cl.gametime+realtime-cl.gametimemark;
PPL_RevertToKnownState();
GL_LazyBind(0, GL_TEXTURE_2D, tex->shader->defaulttextures.base, false);
speedscale = time*8;