mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-13 00:34:11 +00:00
Fix recent black shirts bug.
This commit is contained in:
parent
22c1759a22
commit
0c15adc009
2 changed files with 9 additions and 4 deletions
|
@ -1907,11 +1907,11 @@ from our per-TMU cached texture binding table.
|
||||||
*/
|
*/
|
||||||
static void GL_DeleteTexture (gltexture_t *texture)
|
static void GL_DeleteTexture (gltexture_t *texture)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
glDeleteTextures (1, &texture->texnum);
|
glDeleteTextures (1, &texture->texnum);
|
||||||
|
|
||||||
if (texture->texnum == currenttexture[0]) currenttexture[0] = GL_UNUSED_TEXTURE;
|
for (i = 0; i < countof(currenttexture); i++)
|
||||||
if (texture->texnum == currenttexture[1]) currenttexture[1] = GL_UNUSED_TEXTURE;
|
if (texture->texnum == currenttexture[i]) currenttexture[i] = GL_UNUSED_TEXTURE;
|
||||||
if (texture->texnum == currenttexture[2]) currenttexture[2] = GL_UNUSED_TEXTURE;
|
|
||||||
|
|
||||||
texture->texnum = 0;
|
texture->texnum = 0;
|
||||||
}
|
}
|
||||||
|
@ -1928,7 +1928,7 @@ Call this after changing the binding outside of GL_Bind.
|
||||||
void GL_ClearBindings(void)
|
void GL_ClearBindings(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < 3; i++)
|
for (i = 0; i < countof(currenttexture); i++)
|
||||||
{
|
{
|
||||||
currenttexture[i] = GL_UNUSED_TEXTURE;
|
currenttexture[i] = GL_UNUSED_TEXTURE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7769,8 +7769,10 @@ static struct
|
||||||
{"DP_EF_RED", PR_Can_EF_Red_Blue},
|
{"DP_EF_RED", PR_Can_EF_Red_Blue},
|
||||||
{"DP_ENT_ALPHA", PR_Can_Ent_Alpha}, //already in quakespasm, supposedly.
|
{"DP_ENT_ALPHA", PR_Can_Ent_Alpha}, //already in quakespasm, supposedly.
|
||||||
{"DP_ENT_COLORMOD", PR_Can_Ent_ColorMod},
|
{"DP_ENT_COLORMOD", PR_Can_Ent_ColorMod},
|
||||||
|
{"DP_ENT_EXTERIORMODELTOCLIENT"},
|
||||||
{"DP_ENT_SCALE", PR_Can_Ent_Scale},
|
{"DP_ENT_SCALE", PR_Can_Ent_Scale},
|
||||||
{"DP_ENT_TRAILEFFECTNUM", PR_Can_Particles},
|
{"DP_ENT_TRAILEFFECTNUM", PR_Can_Particles},
|
||||||
|
{"DP_ENT_VIEWMODEL"}, //viewmodelforclient
|
||||||
//{"DP_GFX_QUAKE3MODELTAGS"}, //we support attachments but no md3/iqm/tags, so we can't really advertise this (although the builtin is complete if you ignore the lack of md3/iqms/tags)
|
//{"DP_GFX_QUAKE3MODELTAGS"}, //we support attachments but no md3/iqm/tags, so we can't really advertise this (although the builtin is complete if you ignore the lack of md3/iqms/tags)
|
||||||
{"DP_INPUTBUTTONS"},
|
{"DP_INPUTBUTTONS"},
|
||||||
{"DP_QC_AUTOCVARS"}, //they won't update on changes
|
{"DP_QC_AUTOCVARS"}, //they won't update on changes
|
||||||
|
@ -7815,7 +7817,10 @@ static struct
|
||||||
{"DP_VIEWZOOM"},
|
{"DP_VIEWZOOM"},
|
||||||
{"DP_REGISTERCVAR", PR_NotQEX},
|
{"DP_REGISTERCVAR", PR_NotQEX},
|
||||||
{"DP_SV_BOTCLIENT"},
|
{"DP_SV_BOTCLIENT"},
|
||||||
|
{"DP_SV_CUSTOMIZEENTITYFORCLIENT"},
|
||||||
|
{"DP_SV_DRAWONLYTOCLIENT"},
|
||||||
{"DP_SV_DROPCLIENT"},
|
{"DP_SV_DROPCLIENT"},
|
||||||
|
{"DP_SV_NODRAWTOCLIENT"},
|
||||||
// {"DP_SV_POINTPARTICLES", PR_Can_Particles}, //can't enable this, because certain mods then assume that we're DP and all the particles break.
|
// {"DP_SV_POINTPARTICLES", PR_Can_Particles}, //can't enable this, because certain mods then assume that we're DP and all the particles break.
|
||||||
{"DP_SV_POINTSOUND"},
|
{"DP_SV_POINTSOUND"},
|
||||||
{"DP_SV_PRECACHEANYTIME", PR_CanPrecacheAnyTime},
|
{"DP_SV_PRECACHEANYTIME", PR_CanPrecacheAnyTime},
|
||||||
|
|
Loading…
Reference in a new issue